What are all the two-digit positive integers in which the difference between the integer and the product of its two digits is $12$ ?
What I did so far:
$10a+b-ab=12$,
$10a+b(1-a)=12$,
$-10(1-a)+b(1-a)=2$,
$(b-10)(1-a)=2$
Then I solve and get $b=12$ or $11$, but this can't be right.
Please help.
from the equation $$(a-1)(10-b)=2$$ we obtain $$a-1=2$$ and $$10-b=1$$ from here we get $$a=3,b=9$$ or $$a-1=1$$ and $$10-b=2$$ from here we get $$a=2,b=8$$