Question 186229
Let x & (x+2) be the 2 integers.
x^2+3(x+2)=24
x^2+3x+6=24
x^2+3x+6-24=0
x^2+3x-18=0
(x+6)(x-3)=0
x-3=0 
x=3 ans. for the smaller integer.
3+2=5 ans. for the larger integer.
Proof:
3^2+3*5=24
9+15=24
24=24