Originally Posted by

**doolindalton** Let A and B be some number, integer or decimal.

I want to figure out the lowest possible integer X that will yield another integer Y in the following formula.

(A * X) / B = Y

Using some concrete numbers, say A = 55 and B = 2.25.

Then, applying the above formula, you get

(55 * X) / 2.25 = Y

By trial and error, I was able to figure out that X has to be 9 in order to yield a value for Y that is another integer.

This is feels like a common denominator type of a problem, but I can't figure out how to get X without doing a trial and error.