This question can use priniciple of moments:
Pretend this is the ruler lol
______________________________________
Sand ^
2 masses
Weight of 2 masses= mg= (0.25+0.5)x10=0.75x10=7.5 N
Weight of ruler = mg=0.080(10)=0.8 N
Since the 2 masses lighter than sand, it is clear that the CG of
the ruler is to the right of the pivot.
Let its distance from pivot be x.
Clockwise moments=anticlockwise moments.
7.5(48) + 0.8x= 7.6(48)
360+0.8x=364.8
0.8x=4.8
x=6
Hence cg at 56 cm mark
Thanks for the help! However, i do not really understand the
part where u take the weight of the ruler to be the clockwise
moment and mulitple it by x. Please enlighten me :) Thanks.