clc; clear; Q=9;//gal/min l=5;//ft b=2;//ft H=1.5;//ft //continuity equation to water: integral of m= d*((h*b*l)+(H-h)*A); where A is cross-sectional area of faucet //m=d*(b*l-A)*dh/dt, where dh/dt= hrate //m=d*Q //since A<