which figure formed right triangle?why?