I assume that you have calculated the coordinates of the points of intersection. Then you've got:

Plug in the values for m to get the x-coordinate of A or B. Plug in this x-value into the equation of the tangent to get the y-coordinate. Use the distance formula to calculate the length.