Edited: Physics
http://web2.0calc.com/questions/the-work-done-by-the-spring-force
link dosen't work soz...
Thanks for letting me know,
It works now :)