Travelzoo interview question

Some basic math to figure out cost using their examples