For any ramp problem the force on an object on the ramp has 2 components one parallel and one perpindicular

Draw a ramp and the weight vector is directed downward--Then with a little trig its fairly easy to see

The parallel component is

F = weight*sin(theta)

The perpindicular component is

F = weight *cos(theta)

The tension in the cable equals the parallel component