A local cafe offers two types of pastries: blueberry muffins and chocolate croissants. The price of one blueberry muffin is $2.00, and the price of one chocolate croissant is $3.50. If a customer buys a total of 7 pastries for $18.00, how many of each type did the customer buy?