Subway Interview Question

Some math questions.