randRange( 2, 10 ) randRange( 2, 10 ) fractionReduce( D, A ) fractionReduce( 1, A )

Solve for x:

Ax = D

x = D / A

Multiply both sides by ONE_OVER_A.

(ONE_OVER_A) \cdot (Ax) = (ONE_OVER_A) \cdot (D)

Simplify.

x = SOLUTION