The cart is lifted to a height, h:
h = (8 meters)*sin(12o) = 1.66 m
h = (8 meters)*sin(12o) = 1.66 m
The force in the vertical direction is:
Fy = 120N*sin(22o) = 44.95N
Work = F*d = (44.95)*(1.66) = 74.62 joules
----------
74.62 J = Mgh
Where M is the cart's mass, g is the acceleration due to gravity, and h is the height the cart is pulled up.
74.62 J= M*(9.8 m/s2)*(1.66 m)
4.59 kg = M, the mass of the cart