This section applies if—
Subject to the provisions of this Part, B has the following rights ("home rights")—
If B is entitled under this section to occupy a dwelling-house or any part of a dwelling-house, any payment or tender made or other thing done by B in or towards satisfaction of any liability of A in respect of rent, mortgage payments or other outgoings affecting the dwelling-house is, whether or not it is made or done in pursuance of an order under section 40, as good as if made or done by A.
B's occupation by virtue of this section—
If B)—
the person to whom the payment is made may treat it as having been made by A, but the fact that that person has treated any such payment as having been so made does not affect any claim of B against A to an interest in the dwelling-house by virtue of the payment.
If B is entitled under this section to occupy a dwelling-house or part of a dwelling-house by reason of an interest of A under a trust, all the provisions of subsections (3) to (5) apply in relation to the trustees as they apply in relation to A.
This section does not apply to a dwelling-house which—
B's home rights continue—
It is hereby declared that a person—
is to be treated, only for the purpose of determining whether he has home rights, as not being entitled to occupy the dwelling-house by virtue of that interest.