Pergunta de entrevista da empresa Denny's

Gave me a math problem to figure out without a calculator