Each interior angle of a regular pentagon is 108 degrees, whilst each interior angle of a regular hexagon is 120 degrees. The non-regular pentagon in the centre of the diagram contains two angles which are interior angles of the regular hexagon, two angles which are interior angles of the regular hpentagon and a fifth angle, the one marked x. So:
x+2×120+2×108 = 5×108 = 540. hencex=84.