Pam bought several cartons of Giggle Fruit Drinks to sell during the track meet. She paid 50 cents per carton. She sold all but 15 of the cartons for $1 each. At the end of the day, her profit was $22.50. How many cartons of Giggle did she buy?