The correct answer is: A. The remaining partners in their new profit sharing ratio.

When a partner retires, the remaining partners must agree on a new profit sharing ratio. The reserves created out of profits should then be transferred to the capital accounts of the remaining partners in their new profit sharing ratio.

Option B is incorrect because the remaining partners should share the reserves in their new profit sharing ratio, not their old profit sharing ratio.

Option C is incorrect because all the partners should not share the reserves in the old profit sharing ratio. The retiring partner is no longer entitled to share in the profits of the partnership.

Option D is incorrect because the reserves should not be transferred to the capital accounts of all the partners in the ratio of their capital balances. The remaining partners should share the reserves in their new profit sharing ratio.

Here is a more detailed explanation of each option:

Option A: The remaining partners in their new profit sharing ratio.

When a partner retires, the remaining partners must agree on a new profit sharing ratio. The reserves created out of profits should then be transferred to the capital accounts of the remaining partners in their new profit sharing ratio. This is because the reserves are a part of the partnership's assets, and the remaining partners are now the sole owners of the partnership.

Option B: The remaining partners in their old profit sharing ratio.

This option is incorrect because the remaining partners should share the reserves in their new profit sharing ratio, not their old profit sharing ratio. The old profit sharing ratio is no longer relevant, as the retiring partner is no longer a member of the partnership.

Option C: All the partners in the old profit sharing ratio.

This option is incorrect because all the partners should not share the reserves in the old profit sharing ratio. The retiring partner is no longer entitled to share in the profits of the partnership.

Option D: All the partners in the ratio of their capital balances.

This option is incorrect because the reserves should not be transferred to the capital accounts of all the partners in the ratio of their capital balances. The remaining partners should share the reserves in their new profit sharing ratio.