Mayra and Nancy went to Home Goods to buy centerpieces for their new event hall. Mayra bought 7 small centerpieces and 12 large centerpieces and paid $275.50. Nancy paid $347.25 for 15 large centerpieces and 9 small centerpieces. How much did each small centerpiece and each large centerpiece cost?