X, Y, Z are equal partners in a firm. Z retires from the firm. The new profit sharing ratio between X and Y is 1:2. Find the gaining ratio.