here as we know that there is no frictional loss
so here we will have sum of gravitational potential energy and kinetic energy will remain constant
so we can say that
at initial point gravitational potential energy must be equal to maximum kinetic energy at its mean position
so now we will have
here we know that
m = 2kg
L = 80 cm
now from above equation