If his weight on Earth is 126lb and only 21lb on moon, you can divide [tex]126/21[/tex] to see what is the ratio of those weights.
[tex]126/21=6[/tex]
It means that your weight on moon will be 6 times less than on Earth.
Now we have to multiply 31lb which is weight of the person on moon by 6 to get his weight on Earth [tex]6*31=186[/tex]