Let us assume that pulley is mass less.
Let the tension produced at both ends of the pulley is T.
We are asked to calculate the acceleration of the block.
Let the masses of two bodies are denoted as
As per this diagram, the body having mass 1 kg is moving downward and the body having mass 2 kg is moving on the surface of the table.
Let the acceleration of each block is a .
For body having mass 1 kg:
The net force acting on 1 kg body will be-
Here tension in the rope will be vertically upward and weight of the body will be in vertical downward direction.
For body having mass 2 kg:
The coefficient of kinetic friction
Hence the net force acting on the body having mass 2 kg-
Here the tension of the rope is towards right i.e along the direction of motion of the 2 kg block and frictional force is towards left.
Combining 1 and 2 we get-