The values to satisfy this equation would be a = 3 and b = .5.
In order to solve this we must first look at the equation with the second ordered pair in it. We can then solve for a.
y = ab^x
12 = ab^-2
12 = [tex] \frac{a}{b^{2}} [/tex]
12b^2 = a
Now that we have this solved for a, we can place that value in for a using the first ordered pair's values.
y = ab^x
24 = ab^-3
24 = 12b^2b^-3
24 = 12b^-1
24 = [tex] \frac{12}{b} [/tex]
24b = 12
b = .5
Now that we have the value of b, we can use either ordered pair and the b value to find a.
y = ab^x
12 = a(.5)^-2
12 = a(4)
a = 3
24b