Subway interview question

The math on the written portion.