You can put this solution on YOUR website! Use the distance formula.
To minimize the distance squared, take the derivative of the distance squared and set it equal to zero.
.
.
.
You could also do it geometrically.
(3t,2t) defines a line through the origin where
You could find the line perpendicular to that line through the point (-2,2).
Perpendicular lines have negative reciprocal slopes so the slope would be
Using the point slope form of a line,
So then finding the intersection of the two lines,
So then,