Let p(x) be an exponential function such that p(2) = 24 and p(5) = 3.
Find a formula for p(x). Show your work please.