forces acting on the hanging mass ...

forces acting on the incline's mass ...

combining the equations ...

solving for the acceleration ...

calculate the acceleration, then use the first equation to determine the tension in the string,

... next time, please post physics questions in the "Math Topics" forum.