A mass of 20 kg on a plane inclined at 40 degrees. A string attached to that mass goes up the plane, passed over a pullley and is attached to mass of 30 kg that hangs verticalyy. a) find the acceleration and it's dirction b) the tension in the string. Assume no friction.

I first drew the picture. How would I find the equation since F=ma doesn't include everything?

The pulling mass is 30g. The retarding force is 20g*sinTheta.

So pulling mass - retarding force = totalmass*acceleration.

Tension= 30g - 30*acceleration