Given that the image of the function f (x) = a ^ x + m passes through the point (1,7), and the image of his inverse function y = f ^ (- 1) passes through the point (4,0), find the value of a, M

Given that the image of the function f (x) = a ^ x + m passes through the point (1,7), and the image of his inverse function y = f ^ (- 1) passes through the point (4,0), find the value of a, M

Because the inverse function goes through (4,0), so the original function goes through (0,4), so a ^ 0 + M = 1 + M = 4, so m = 3
And because the original function passes through (1,7), so a + M = 7, so a = 4