SSC CGL 21 Jul 2023 Shift 2 — Question 58 (Arithmetic)

Medium2023
An inlet pipe can fill an empty tank in 4124\frac{1}{2} hours while an outlet pipe drains a completely filled tank in 7157\frac{1}{5} hours. The tank is initially empty, and the two pipes are alternately opened for an hour each, till the tank is completely filled, starting with the inlet pipe. In how many hours will the tank be completely filled?