There were 527 tickets purchased for a major league baseball game. The lower box tickets cost ​$12.50 and the upper box tickets cost ​$10.00. The total amount of money spent was ​$6160.00. How many of each kind of ticket were​ purchased?