We know that the conservative force
Here it is given that
When the body crosses the Y-axis, then x=0.
Again it is given that body is at rest at the position (6m,4m) at t=0
at x=6m, velocity =0;
When the body crosses Y-axis,its displacement along X-axis becomes
If this displacement occurs in t sec due to its movement with acceleration along X axis
then we can write