You can let one of the integer be x and then get an expression in term of x for the other one. If the integers are consecutive, then if the smaller is x, the other is x+1. Then, by taking the product and adding the constants, you should be able to get an equation solvable for x, the smaller integer.

I hope this helps.