hahaha...cute..
Here's the problem:
You divide by (A-B) at one step.
If A=B, then A-B is equal to zero.
Division by zero is a no-no!

Not dumb. Inexperienced.