An object is attached horizontally on a frictionless surface to a given spring which obeys Hooke's Law. When the object is at some position A, the force felt by the object from the spring is F=−2.4N and the potential energy in the spring is U=2.4J. At some different position B, the force felt by the object is F=−12N.
What is the potential energy stored in the spring when the object is at position B?