Where a part only of the property is sold, a tenant for life or years in an undivided share of the whole property may have his estate equitably set off in any part of the property not sold by way of complete or partial satisfaction of his share of the proceeds.
Ca. Civ. Proc. Code § 873.830