Hmm, I think something is missing from the question. In particular k (the spring constant), which you may not have come across yet in your studies
If thats the case, then the question is unsolvable.
Here I'll copy the whole question. I could have read it wrong and missed out something important;
A gymnast decides to improve the strength of her grip
by repeatedly squeezing a small rubber ball of mass
100 g whose force–compression graph is shown.
7 a How much work must the gymnast do to compress
the ball by 10 mm?
b Discuss the energy changes that occur in the ball
during one cycle of compression and release.
c How much power is expended by the gymnast if
she performs 120 identical compressions of 10 mm
in a 60 s interval? (Assume that no work is done
on release.)
8 After the gymnast finishes her exercises, she throws
the ball at a solid brick wall. The ball strikes the wall
horizontally with a speed of 4.0 m s–1. Calculate the
maximum compression produced in the ball during
this impact.
Question 8 is what I need
PS - There was also a f verses compression graph which I couldn't copy