Subway Interview Question

Do some simple math equations