A spring when stretched by 2 mm its potential energy becomes 4 J. If it is stretched by 10 mm, its potential energy is equal to