differentiate both sides

now would be the gradient of the curve (m in the formula)

substitute this in along with (you are given this) into the equation of the line you want to find and solve this for x

I get

now plug these values into your expression for to find the values of m (remember dy/dx=m)