Mr. McClelland bought 50 boxes of pizzas. The pepperoni pizzas were $12 each and the cheese were $8 each. The total cost for all the pizzas was $520. How many of each pizza was ordered?

Pepperoni = ?
Cheese = ?