The self-regulating floodgate ABC, pinned at B, is pressed against the lip of the spillway at C by the action of the 3645-lb weight A. If the gate is to open when the water level reaches a height h = 6 ft, determine the distance x locating the weight A. Neglect the weight of the gate.