A local reaturant offers a deal if you purchase 3 medium pizzas, you get 2 side dishes for free. if you get a total of 8 side dishes, how many pizzas did you buy?