\begin{equation}
\begin{cases}
T_1=3,5g\\T_2=T_1+1g\sin12^°\\T_2=T_3+1g\sin36^°\\T_3=mg
\end{cases}
\end{equation}
In the first equation the weight of the mass on the left must be equal to the string tension (it is motionless);
on the left cart we have a component of the weight force ($1g\sin12^°$) downward along the inclined plane and also the tension $T_1$ (downward along the inclined plane), this two forces (summed) must be equal to $T_2$ (the tension of the string upward), so I wrote the second equation.
Now we go to the right side:
on $m$ we have the weight force downward and the string tension ($T_3$) upward, so we have the last equation;
on the right cart we have a component of the weight force ($1g\sin36^°$) downward along the inclined plane and also the tension $T_3$ (downward along the inclined plane), this two forces (summed) must be equal to $T_2$ (the tension of the string upward), so I wrote the third equation.