Ok, I think I got the answer.
If you sketch a graph of and that of , you'll notice that if they meet at a point only, their gradients are the same.
This means, their derivative are equal.
Plugging that in our equation:
Now, plugging this value of x into the first equation: