The correct answer is: C. A and B both

When a new partner brings his share of goodwill in cash, the accounting effect would be that the old goodwill account will be closed and the goodwill bought by the new partner will be distributed between the old partners in sacrificing ratio.

The old goodwill account is closed because the new partner has already paid for the goodwill, so there is no need to keep track of it separately. The goodwill bought by the new partner is distributed between the old partners in sacrificing ratio because the new partner is essentially buying a share of the old partners' goodwill. The sacrificing ratio is the ratio in which the old partners give up their share of the goodwill to the new partner.

Here is an example:

Suppose there is a partnership with two partners, A and B. The partnership has a goodwill of $10,000. A and B share the profits and losses in the ratio of 2:1. A decides to retire from the partnership and C is admitted as a new partner. C pays $5,000 for his share of the goodwill.

The old goodwill account will be closed and the goodwill bought by the new partner will be distributed between the old partners in sacrificing ratio. The sacrificing ratio is 2:1, so A will give up $2,000 of his share of the goodwill to C and B will give up $1,000 of his share of the goodwill to C. The new partnership will have the following capital accounts:

A: $20,000 B: $15,000 C: $10,000