I don't know how to this problem please help.

A 10 kg object sits 5 m away from a 50 kg object. Calculate the force of attraction between the two masses

Use Newton's universal law of gravity. It must be in your course materials somewhere.

It is usually written

F = G*m1*m2/R^2

G is the universal constant, 6.67*10^-11 N*m^2/kg^2, and the other terms have their usual meanings.

The force of attraction that you get will be very small.