A large tank with a nozzle attached contains three immiscible, inviscid fluids as shown. Assuming that the changes in h1,h2 and h3 are negligible, the instantaneous discharge velocity is