You can put this solution on YOUR website! Without the diagram, I can only guess...
B would have to be the right angle though...and BD has to intersect the hypotenuse at a right angle to be an altitude...
Maybe repost with a link to the diagram and I or someone else here will help you...