-- If it's all happening horizontally, then gravity is not involved.
Only the spring is.
-- If there's no friction, then total energy is conserved.
-- If you put 190J of energy into the spring by moving the mass,
and there's only 55J of potential energy in the spring now, then
the other 135J of energy is in the kinetic energy of the mass and
the moving parts of the spring.