Dina cuts some cloth to make four triangular flags. Flag 1 has sides of 6 in. , 10 in. , and 10 in. Flag 2 has sides of 6 in. , 7 in. , and 8 in. The sides of Flag 3 measure 7 in. , 8 in., and 14 in. , while Flag 4 has sides that are 8 in. , 15 in. , and 17 in. Which flag is a right triangle.
Group of answer choices

Flag 1

Flag 2

Flag 3

Flag 4