<p>This is kind of hard to explain without drawing it out, but here goes.
Basically draw the line from A to B, then draw another line from A to the vertex of the side with point B. So you're drawing 2 lines, making two right triangles.</p>
<p>You can probably solve the rest yourself now.</p>