Welcome to PF.
A spring balance uses a spring to counter the weight of an object (lets call it a mass), so when the mass is at rest the force generated by the spring due to it being deflected (that is, compressed if the mass is placed "above" the spring or extended if the mass is "hanging" from the spring) precisely balances out the force of gravity on the mass. The weight of the mass can then be read of a scale according to deflection of the spring.
Using Newtons 2nd law, this situation can be described by saying that the sum of the spring and gravity force is zero, i.e. Fs+Fg = ma = 0 because a is zero.
If you then accelerate the whole spring-mass up or down and still require the setup to be in balance, the two forces no longer sum to zero since the acceleration in the above equation now is plus or minus the given 5 m/s2. So, to figure out how much deflection the spring now must have you can insert what you know about the forces Fg (based on mass m and constant g) and Fs (based on spring constant k and deflection x), and you can solve to get the deflection.