When the levels are the same, Gate A opens and the ship enters Chamber 1.
With the ship in Chamber 1, Gate A is closed, and, opening Valve B, the ship is raised by equalizing Chambers 1 and 2.