The average power output is the ratio between the work done to compress the spring, W, and the time taken, t:

(1)
The work done is equal to the elastic energy stored by the compressed spring:

where

is the spring constant and

is the compression of the spring. If we substitute the numbers, we find:

And now we can use eq.(1) to calculate the average power output:
Data !
hope this helped <3