a mass m=8 kg sits on top of an h=1.8 m high table. The angle of the ramp is theta= 35 degrees. What is the length of the ramp.

The mass has nothing to do with the ramp geometry. This is just a trigonometry question.

If L is the ramp length,

L sin 35 = 1.8 meters
L = 3.138 meters