A spring of length 25cm is extended to 30cm by a load of 150N attached…