The ratio of nuts to total weight is 30 out of 61
Substituting in the numbers you are given (weight of nuts = 480)
the ratio of nuts to total weight is 480 to 'x'
30/61 = 480/x Multiply both sides by 'x'
30/61 * x = 480 Mutiply both sides by 61/30
x = 976