Daniel B. answered 05/09/21
A retired computer professional to teach math, physics
I will answer this question as if it were a physics question.
I am not sure why it is in a calculus class.
A spring has a spring constant k with the following properties
1) To stretch the spring extra length x requires force kx
2) A spring stretched length x has energy kx²/2.
The given information allows you to calculate k as follows.
Work of 5J gave the spring energy k(39-28)²/2.
Therefore
5 = k(39-28)²/2
k = 10/121 N/cm
(a)
At 33cm the spring has energy k(33-28)²/2.
At 35cm the spring has energy k(35-28)²/2.
The extra energy needed is
(10/121)(35-28)²/2 - (10/121)(33-28)²/2 = 120/121 = 0.99J
(b)
30 = kx
x = 30/k = 363cm