A body is projected horizontally from a height of 20 m. It reaches the ground at a horizontally distance of 40m. The speed of particle when it hits the ground is