Pergunta de entrevista da empresa Amazon

Two case questions that involved math and were fairly easy