A particle is projected from a point on the level ground and its height is h when at horizontal distances a and 2a from its point of projection. Find the velocity of projection.