Raffle tickets were sold for two different prizes. The raffle tickets for prize A cost $5 each and the raffle tickets for prize B cost $10 each. They raised $2500 from the raffle and sold a total of 358 tickets. How many tickets did they sale for each prize?