Subway interview question

Simple Mathematics Questions