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

Solve for x:

Ax + B = D

x = ( D - B ) / A

B > 0 ? "Subtract" : "Add" abs(B) B > 0 ? "from" : "to" both sides:

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

Ax = D - B

Divide both sides by A.

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

Simplify.

x = SOLUTION