Okay, so, you need two points to define a line, and given the conditions of the problem, they need to be points with particular properties. Let us call one of them (x1, y1) and the second (x2, y2). They will be the points at which the line is tangent to the curves. To be tangent to a curve, the line has to have a point that's also on the curve, and at that point, the slope of the curve has to be equal to the slope of the line.
So, we know the line containing (x1, y1) and (x2, y2) has slope:
m=(y2-y1)/(x2-x1).
We also know that if (x1,y1) is on y=x^2, then
y1=(x1)^2
and (taking the derivative)
m=2(x1)
--since that's the slope of the curve y=x^2 at (x1,y1), and for tangency we have to find a point where that's equal to the slope of the line.
Similarly, we know that
y2=(x2)^2-2(x2)+2
and
m=2(x2)-2
Now, technically you've got a system of five variables in five equations:
m=(y2-y1)/(x2-x1) -- by definition of the slope of a line
y2=(x2)^2-2(x2)+2 -- to intersect with y=x^2-2x+2
m=2(x2)-2 -- to match slope of y=x^2-2x+2
y1=(x1)^2 -- to intersect with y=x^2
m=2(x1) -- to match slope of y=x^2
From here, you can start making some substitutions. For instance:
m=(y2-y1)/(x2-x1)
--subst. for y2
m=((x2)^2-2(x2)+2-y1)/(x2-x1)
--subst. for y1
m=((x2)^2-2(x2)+2-(x1)^2)/(x2-x1)
Now note that m=2(x1)=2(x2)-2
x1=(x2)-1
x2=(x1)+1
Since there are more terms with x2 already, it's probably simplest to get everything in those terms. So:
2(x2)-2=((x2)^2-2(x2)+2-((x2)-1)^2)/(x2-(x2-1))
2(x2)-2=((x2)^2-2(x2)+2-((x2)^2-2(x2)+1))/(x2-x2+1)
2(x2)-2=1 (seriously, watch the terms cancel out)
2(x2)=3
x2=1.5
Check my work there--the conceptual part is right but I could have messed up in the parentheses someplace--and then you can go through and find the rest of the values using that value. Once you've got the two points, you can find the equation of the line.