There are 379 tickets purchased for a Major League Baseball game. The lower box tickets cost $12.50 and the upper box tickets cost $10. The total amount of money spent was $4477.50. How many of each kind of ticket were purchased ?