A local restaurant offers a deal if you purchase 3 medium pizzas you get to side dishes for free if you get a total of 8 side dishes how many pieces do you buy