The perimeter is the measure around the shape, so just add all the sides together-
6+5x+x+2
6x+8
Since this is a right triangle, you multiply the legs (6 and x+2) and divide by 2
6(x+2)
6x+12
/2
3x+6
Solve x by simplifying both sides of the equation & then isolating the variable x=-4 & the negative comes in from the -12