H2O at 520 degrees celsius, 12 MPa(abs) enters a control volume operating at steady state with a volume flow rate of 40 m^3/min, 22% of the entering mass flow exits at 220 degrees celsius, 1 MPa(abs), with a velocity of 20m/s. The rest exits at another location with a pressure of 6 kPa(abs), a quality of 86%, and a velocity of 500 m/s. Determine the diameters of each duct.