do a and b have to be integers?
First assume that we are dealing with natural numbers (positive).
I just know a great deal about how numbers work.
It does not take much to see that the integers must be less that ten.
It was simple to try various combinations.