Sam is in charge of setting up rooms for parties at a hotel. On Saturday, there are two parties, one with 496 people and one with 784 people. Each table seats 8 people. How many total tables does he need for the two parties?
A. 160
B. 1,288
C. 62
D. 1,280