a linear harmonic oscillation has a total mechanical energy of 200 joules potential energy of it at mean position is 50J then the potential energy at extreme position is

Potential energy at is given by the formula inserted below but since we have to find the PE at extreme point where x=A so-￼$\frac{kx^{2}}{2}=\frac{kA^{2}}{2}=Total energy=200J$