You can use a system of equations to solve this.
Equation 1 can represent the total number of bills
x + y = 32
Equation 2 can represent the total value
5x + 50y = 1060
Multiply Equation 1 by negative 5 to give
-5x -5y = -160
Combine this with Equation 2
-5x - 5y = -160
5x+ 50y = 1060
The x is eliminated to give
45y = 900
Divide both sides of the equation by 45
y = 20
Next substitute this value for y into Equation 2 to solve for x
5x + 50y = 1060
5x + 50(20) = 1060
5x + 1000 = 1060
Subtract 1000 form both sides of the equation
5x = 60
Divide both sides of the equation by 5
x = 12
y = 20
We have 12 $5 bills and 20 $50 bills
Checking in the original equations
12 + 20 = 32
5(12) + 50(20) = 1060
I hope you find this useful if you have any questions please send me a message.
Note this can also be solved by substitution; x + y = 32 so y = 32 -x
Equation 2 is completely divisible by 5 and this option could also be used; 5x + 50y = 1060 reduces to
x + 10y = 212
Give these other options try.