Solve this by making a table: A local restaurant offers a deal if you purchase 3 pizzas, you get 2 side dishes free. If you get a total of 8 side dishes, how many pizzas did you buy?