To find the value of x you put them into an equation of: (x+6) = (3x+2), this would let you find that x=2, since 2+6 = 6+2. Once you've plugged that in all you need to do is add together all the sides, and since side A and side B are both 8 you do 12+16 to get the perimeter of 28 inches.