The graph of an exponential function passes through (2,−12) and (3,−24). Find the exponential function that describes the graph.