Find the value of x.
external angles always add up to 360 degrees, so:
\(x+40+45+2x+77=360\)
now solve for x.