A firefighter needs to direct a stream of water from a hose at ground level to enter a window located at a horizontal distance of 40m and a vertical height of 30m. Determine the minimum velocity the water must have at the nozzle to reach this window. Take g=10m/s2.