square has 90 degrees corners so the bottom left angle of the triangle is also 90.
angle 3 is the exterior angle and the rule is that the sum of exterior angles always equals 360. So as a hexagon, each exterior angle will equal 360/6=60 degrees. So the bottom right angle of the triangle equals 60. So the value of x is 180-(90+60)=30 B