Hi there!
We can use a summation of torques to solve.
Recall the equation for torque:

r = distance from fulcrum (balance point)
F = force (in this instance, weight, N)
We can set the fulcrum to be the balance point of 30 cm.
Thus:
Meter ruler:
Center of mass at 48 cm ⇒ 48 - 30 = 18 cm
Object:
At 6cm ⇒ 30 - 6 = 24 cm
For the ruler to be balanced:

Thus:

The mass of the ruler is <u>80 grams.</u>
If the body were moved to 13 cm:
B (balance point) - 13 = distance of object
48 - B = distance from ruler center of mass to balance point

The new balance point would be <u>33cm</u> from the zero end.