randRange( 2, 10 ) randRangeNonZero( -10, 10 ) randRange( 2, 10 ) fractionReduce( D - B, A )

Solve for x:

Ax + B = D

x = (D - B) / A

Subtract abs(B) from both sides:

Add abs(B) to both sides:

(Ax + B) + -B = D + -B

Ax = D - B

Divide both sides by A.

\dfrac{Ax}{A} = \dfrac{D - B}{A}

x = SOLUTION