In a geometric configuration, angle C measures 120∘ and forms a linear pair with angle D. In an adjacent triangle, angle E measures 50∘ and angle F is congruent to angle D. Determine the measure of angle G, the third angle in the triangle containing angles E and F.