Mr Wood makes tables with 4 legs and stools with 3 legs. Nine customers ordered 8 items each. Each ordered was different. How many legs are needed altogether?

The nine customers had 0 through 8 tables. Those with x tables has 8-x stools.

The average number of tables was (1+2+3+4+5+6+7+8)/9 = 4 and the average number of chairs was also 4.
9*4*3 stool legs and 9*4*4 table legs were needed. Add those two numbers up.

9*4*7 = _____