Step-by-step explanation:
We can write Newton's 2nd law as applied to the sliding mass
as

For the hanging mass
we can write NSL as

We need to solve for a first before we can solve the tension T. So combining Eqns(1) & (2), we get

or


Using this value for the acceleration on Eqn(2), we find that the tension T is

