Help.
This is an (irregular) pentagon
The sum of the interior angles is (5 -2) * 180 = 3 * 180 = 540°
So...the measure of the missing angle is
[ 540 - 86 - 140 -138 - 59 ] = 117 = x