BairesDev interview question

Junior high math word problems.