Use Pythagorean identity to find x value and solve using formulas
In the monthly payment formula r is the percentage rate as a decimal.
To turn a percentage into a decimal, move the decimal point 2 places to the left.
5.7% becomes 0.057
18+3x=-10+x
3x-x=-10-18
2x=-28
x=-14