Subway interview question

Do some simple math equations