A relationship was a mathematical formula: the correct variables of age, beauty, morality and finances were entered and the output was a successful, peaceful marriage.…