Answer:
40th and 80th visit
the first visit where you receive both is the 40th
Explanation:
personally, I believe that the simplest way to solve this is use an excel spreadsheet to see which visits would include both a free beverage and a free appetizer:
- both rewards would happen only twice, at the 40th and 80th visit.
you can also calculate it mathematically since multiples of 8 and 10 do not repeat themselves very much, only when 8 is multiplied by 5 and 10.