Using the first point given in the statement you can find a, like this
Now, since you already have the value of a, you can find the value of b using the second point, like this
Therefore, the exponential function that passes through the points (0,18) and (3,6174) is