It wasn't a good idea starting a new thread to continue asking in the same post. Few would know what you're talking about. I assume you are referring to:
http://www.askmehelpdesk.com/mathema...la-216527.html
The formula for the distance from a point to a line is
In that event, the

comes from the coefficients of the line equation you were given.

. The coefficients of x and y are 1 and -1, respectively.
See now?.
Please, if this has been of help, don't be an ingrate like so many others. Please rate the answer or say thanks.