i asked this question earlier but didnt really get how to find the tension equation.

Two blocks are connected by a string as shown. The inclination of the ramp is θ = 36° while the masses of the blocks are m1 = 3.7 kg and m2 = 16.2 kg. Friction is negligible.

(search question above for diagram)

Write an equation for the tension in the string in terms of m2, the acceleration due to gravity g, and the acceleration of the two blocks a.

What is the tension in the rope in newtons?