wife must pay her husband debt

i watched a short porn film
about wife who has sex with many men
as a payment for her husband’s debt.

i was wondering:
how much was the debt?
what were the conditions of the debt?
why did they agree on the exchange for sex?
and how did they measure
the amount of sexual satisfaction
of all the creditors
as the replacement for the debt?