The intended solution:
Inverse Function Theorem:
Let b = f(a), f differentiable around a
(f⁻¹)'(b) = 1/f'(a)
Regarding the problem:
By the Inverse Function Theorem, (f⁻¹)'(p) = 1/f'(p)
But the slopes are equal, by the problem assumption.
So let m = f'(p) = (f⁻¹)'(p), and we have m = 1/m ⇒...