Please reread my post #22. Use either method 2 OR method 3 - you don't need to mix them as you have above.
Have you studied calculus? If not, ignore method 3 for the moment.
I have just copied and pasted your answer so it makes sense.
To justify your working you will need to address my comments in red.
Method 2: (using analytical geometry)
The shortest distance between a point and a line (which is what is meant by "the" distance between them) is along a line perpendicular to the line. The line is given by y= 6x+ 3 so has slope 6. A line perpendicular to that has slope -1/6. The line through (6, 2) with slope -1/6 is y= (-1/6)(x- 6)+ 2 so 6y= -x+ 6+ 12 or x+ 6y= 18
d^2=(x−6)^2+(y−2)^2, where y=6x+3. Or d^2=(x−6)^2+(6x+1)^2. To minimize calculate derivative and set to 0. 2(x−6)+12(6x+1)=0 leading to x=0 and y=3 or d^2=37.
Then, use the distance formula to find the exact distance.
d^2 = (x2 - x1)^2 + (y2 - y1)^2
The foot of the perpendicular to the line Is (0, 3). You will need to show how you got (0, 3).
So the distance between (0, 3) and (6, 2), squared, D^2= (0- 6)^2+ (3- 2)^2= 37 and then D= square root (37)
Method 3: (using calculus)
The shortest distance between a point and a line (which is what is meant by "the" distance between them) is along a line perpendicular to the line. The line is given by y= 6x+ 3 so has slope 6. A line perpendicular to that has slope -1/6. The line through (6, 2) with slope -1/6 is y= (-1/6)(x- 6)+ 2 so 6y= -x+ 6+ 12 or x+ 6y= 18
d^2=(x−6)^2+(y−2)^2,
where y=6x+3.
Or d^2=(x−6)^2+(6x+1)^2.
To minimize calculate derivative and set to 0.
Derivative = 2(x−6)+12(6x+1)=0 leading to x=0 show how you got x=0
and y=3 show how you got y=3
You will also need to justify that this is a minimum distance.
or d^2=37. show how you got d^2 = 37
Then, use the distance formula to find the exact distance.
d^2 = (x2 - x1)^2 + (y2 - y1)^2
The foot of the perpendicular to the line Is (0, 3). So the distance between (0, 3) and (6, 2), squared, D^2= (0- 6)^2+ (3- 2)^2= 37 and then D= square root (37)