Answer:
Quasi Contract
Explanation:
A quasi contract is a two-party retroactive agreement that has no prior commitments to each other. A judge creates it to correct a situation where one party at the expense of the other obtains something.
The agreement is intended to prevent one party from taking undue advantage of the situation at the expense of the other party.