The line going through and is just , where is a real number. So gives point and gives point .
The altitude of the triangle has to be perpendicular to that line, so
which you should be able to solve for , and then find .
Post again in this thread if you're still having trouble.