Find equation of a line perpendicular to something passing through something and something?

Please answer without the point slope formula I prefer the substitution method. I know how to find the equation of a line perpendicular to something passing through a given co ord but not something passing through 2 given co ords. Thanks, need this for my GCSE.