$32.072 ≈ $32.07
20% of $38 is equal to $7.60
$38 - $7.60 = $30.40
5.5% of $30.40 = 1.672
$30.40 + $1.672 = $32.072
This formula solve by discriminant (D=b^2-4ac)
Let X is the random number Erik thinks of, and Y is the random number Nita thinks of.
Both X and Y are in the range from 0 to 20.
<span>X<=20
Y<=20
If the difference between their two numbers is less than 10, then Erik wins.
The difference between the two numbers can be written X-Y, or Y-X depending on which number (X or Y) is greater. But we do not know that. In order not to get negative value, we calculate absolute value of X-Y, written |X-Y| which will give positive value whether X is greater than Y or not.
If |X-Y|<10 Erik wins.
</span><span>If the difference between their two numbers is greater than 10, then Nita wins.
</span><span>If |X-Y|>10 Nita Wins
</span>
4,0
that is the ordered pair of the solution:)