Debby is making pizzas. She needs to choose among three bags of shredded mozzarella. One contains 8 ounces and costs $1.59. One contains 12 ounces and costs $2.49. One contains 16 ounces and costs $3.29. If Debby needs 48 ounces of cheese for her pizzas, how many of which type of bag should she buy and what will be the cost?