Answer:Let's call the smaller integer "x" and the larger integer "y".
From the problem, we know that:
y = 3x - 2 (because the larger integer is 3 times the smaller integer minus 2)
x + y = 18 (because the sum of the integers is 18)
We can substitute the first equation into the second equation to get:
x + (3x - 2) = 18
4x - 2 = 18
4x = 20
x = 5
Now that we know that the smaller integer is 5, we can use the first equation to find the larger integer:
y = 3x - 2
y = 3(5) - 2
y = 13
So the smaller integer is 5 and the larger integer is 13.