Answer:
Part a)

Part b)

Part c)

Part d)

Part e)

Part f)

Step-by-step explanation:
Part a)
As we know that the maximum angle deflected by the pendulum is

so the maximum height reached by the pendulum is given as

so we will have



now gravitational potential energy of the pendulum is given as



Part b)
As we know that there is no energy loss while moving upwards after being stuck
so here we can use mechanical energy conservation law
so we have




Part c)
now by momentum conservation we can say



Part d)
Work done by the bullet is equal to the change in kinetic energy of the system
so we have



Part e)
recoil speed of the gun can be calculated by momentum conservation
so we will have



Part f)
Total energy released in the process of shooting of gun


