Subway interview question

Some math questions.