The diagram shows the two pieces will fit together to form a right-angled triangle which has a base 8 and height 6. The length of the hypotenuse =Ö(62+82), that is 10, so the perimeter of the triangle is 24. Rectangle solution