(-1,2) and (1,8)
y=a(b^x)
2=ab^-1
a=2b
8=ab^1 = ab
ab=8
2b(b) =8
b^2 = 4
b=+/-2
a =+/-4
y=4(2)x
is the exponential equation you probably want
also the following equation fits the two given points
y =-4(-2)x
but it only works for integer values of x. it's a discontinous curve graphically
a negative number raised to a fractional exponent is undefined
both are exponential equations, so the correct answer is both, but the instructor, textbook, or online answer is probably just the positive values of a and b