**Problem**
The figure below shows a block of mass m1 sliding on a block of mass m2. The inclined surface is fixed, and the angle of the incline is θ. All surfaces are frictionless Find the acceleration of each block and the tension in the

string that connects the blocks

**Attempt at a solution**
$\displaystyle m1-x:T2on1-m1sinΘ=m1a1$

$\displaystyle m1-y:n2-m1gcosΘ=0$

$\displaystyle m2-x:T1on2-m2gcosΘ=m2a2$

$\displaystyle m2-y:ns-n1-m2g=0$

Newton's III:$\displaystyle T1on2=T2on1$

Acceleration constraint:$\displaystyle a2=-a1$

$\displaystyle =>T1on2=m2gcosΘ-m2a1$

$\displaystyle =>m2gcosΘ-m1sinΘ=m2a1+m1a1$

$\displaystyle =>m2gcosΘ-m1sinΘ=a1(m2+m1)$

$\displaystyle =>(m2gcosΘ-m1sinΘ)/(m2+m1)=a1$

So since a2=-a1, would a2 just be the negative of the expression I found above? Also I'm not really sure how to find the tension from what is given.