Tickets to the school play cost $4.50 for adults and $3.00 for students. One night 325 tickets where sold and 1140 was collected. How many of each type was sold?