Do you mean you have points (x1, y1) and (x2, y2) and you have to fit a function of the form y = a*ebx to them (where a and b are constants to be found from fitting to the two points)?
If so:
Take the natural logarithm of both sides of the equation to get: ln(y) = ln(a) + b*x
Now we have y1 = ln(a) + b*x1 and y2 = ln(a) + b*x2
These are two independent equations that can be solved for the two unknowns (ln(a) and b). Having found ln(a) you get a from a = eln(a).
.