The deal, available through Subway’s app and website for a limited time, is aimed at inflation-weary consumers.