Complete Question
The diagram of this question is shown on the first uploaded image
Answer:
The distance the block slides before stopping is 
Explanation:
The free body diagram for the diagram in the question is shown
From the diagram the angle is 

Where 
So 
From the question we are told that
The mass of the block is 
The mass of the pendulum is 
The velocity of the pendulum at the bottom of swing is 
The coefficient of restitution is 
The coefficient of kinetic friction is 
The velocity of the block after the impact is mathematically represented as
![v_2 f = \frac{m_b - em_p}{m_b + m_p} * v_2 i + \frac{[1 + e] m_1}{m_1 + m_2 } v_p](https://tex.z-dn.net/?f=v_2%20f%20%3D%20%5Cfrac%7Bm_b%20-%20em_p%7D%7Bm_b%20%2B%20m_p%7D%20%20%2A%20v_2%20i%20%2B%20%5Cfrac%7B%5B1%20%2B%20e%5D%20m_1%7D%7Bm_1%20%2B%20m_2%20%7D%20v_p)
Where
is the velocity of the block before collision which is 0

Substituting value

According to conservation of energy principle
The energy at point a = energy at point b
So 
Where
is the potential energy at A which is mathematically represented as
= 0 at the bottom
is the kinetic energy at A which is mathematically represented as
is the potential energy at B which is mathematically represented as
From the diagram 

is the kinetic energy at B which is 0 (at the top )
Where is
is the workdone against velocity which from the diagram is

So

Substituting values
So
