The motion of pairs of gas bubbles in a perfect liquid