The velocity of stream when it gets out of the hole is
Vo=√2g(6−x)
Now lets say that the stream strikes the inclined plane after t seconds,
the horizontal component of the velocity will still be, Vx=V0
Now, the angle of incline is 30o, so the stream will be forming an angle of 90−30=60o on striking the inclined plane.
Now, Vy/Vx=tan60o=√3
Therefore, Vy=√3Vx=√3V0
Since, the initial velocity in the vertical direction is 0,
Vy=0+gt
gt=√3V0
Therefore, t = √3V0/g
Now, the distance travelled in the vertical direction will be, x−0.5gt2
Or, distance = x−0.5g×3V20/g2
Distance travelled in the horizontal direction = V0t
The two distances are related as, y/x=tan30o
x−0.5gt2=√1/3V0t
Solving, this, x=5h/6=5m