The correct option is
A F22KMax. PE will be stored when the compression of the spring is max. and this will occur when rhe second box is just about to move.
Now, compression just before box starts moving =x=Fk
⇒ PE stored=0.5×k×x2=F22k
Hence correct answer is option A