Mrs. algebra ordered some small and medium pizzas for her daughter‘s birthday party. The small pizzas cost $5.75 each and the medium pizzas cost $8.00 each. She bought three more medium pizzas than small pizzas and her total order came to $51.50 How many pizzas of each did Mrs. Algebra order? Write an equation and solve.