Pregunta de entrevista de CarMax

Case problem involving some easy math