1. I assume that you mean:

2. Calculate the points of intersection between the line and the ellipse substituting y = mx:

and solve for x. (Use the formula to solve a quadratice equation)

3. You only get one point of intersection = tangent point if the radicand equals zero.

4. To calculate the values of m, solve for m:

(Use the formula to solve a quadratice equation)