A stone is to be thrown from the top of a vertical cliff into a boat floating on the sea. The boat is at a horizontal distance of 30m from the base of the cliff, and the cliff top is 40m above the sea level. Calculate the minimum speed with which the stone must be thrown to reach the boat.