It wouldn't really make sense to try to 'put all the constants on the RHS of the equation' - everything in the first equation is a constant and we know that 'x', the only variable in the second equation, cannot be zero.
Consider, instead, that 'k', as a property of the spring, will not change...