Alright well i've been having a lot of trouble trying to figure out how to find the distance between a line and a point not on the line.

So if anyone could help me i'd really like that.

Here are some sample problems:

Sample 1:

(6,1) and -2x+4=4

Sample 2:

(-7,-2) and y=7x-3

if you could take them step by step for me i'd really like that.

thanks.