Note that y here is just another name for x-dot (dx/dt).
Hence, x-double-dot is the same as y-dot.
Start with diff. eq. for H.O. and make this substitution.
(DO NOT start with the solutions to the H.O. equation).