A ball is thrown from the ground so as to just clear a wall 10m high at a distance of 20m and falls at a distance of 40m from the wall. The magnitude and direction of the projection velocity is