ok so first you need to find the line thats perpendicular to y=2x-2 and that is y=-1/2x+b
next solve for the y intercept, and i got 3 so now the equation would be y=-1/2x+3
now you need to find the point of intersection between the two points so you would use either subsitution or elimination or any other method you are comfortable with.
I used substitution:
and then you would need to find the distance between the points (2,2) and (6.0) so you would use the distance formula:
❀◕ ‿ ◕❀ ❀◕ ‿ ◕❀ ❀◕ ‿ ◕❀