A prismatically shaped gate placed at the end of a freshwater channel is supported by a pin and bracket at A and rests on a frictionless support at B. The pin is located at a distance 4 h = in. below the center of gravity C of the gate. Determine the depth of water d for which the gate will open.