Travelzoo Interview Question

Some basic math to figure out cost using their examples