A right-angled triangle is any triangle having one right angle. The side opposite the right angle is…