Since there are 180 degrees in a triangle and a right angle (signified with the diamond at the top) is 90 degrees, the remaining angles are 180-90=90 degrees. Therefore, 2x+1+5x+5=90=7x+6. Subtracting 6 from both sides, we get 7x=84. Next, we divide both sides by 7 to get x=12