.
x 50-pese bills;
(x-5) 200-pesos bills
(x-5)/2 500-peso bills.
Thus the total money equation is
50x + 200*(x-5) + = 6250 pesos.
Simplify and find x
2*50x + 2*200*(x-5) + 500*(x-5) = 2*6250
100x + 400(x-5) + 500*(x-5) = 12500
100x + 400x - 2000 + 500x - 2500 = 12500
100x + 400x + 500x = 12500 + 2000 + 2500
1000x = 17000
x = 17
ANSWER. 17 50-peso bills; 12 200-peso bills and 6 500-peso bills.
CHECK. 17*50 + 12*200 + 6*500 = 6250 pesos, in total. ! Correct !
Solved (using one equation for three unknowns).