Icon
 

In the figure shown pulley and spring are ideal Find the potential