Top one would make more sense
This is the concept of geometry, the congruence statements that can be evaluated from the parallel figure is:
DH=HF
EH=HG
EF=DG
DE=FG
hence;
Hence ΔDEF is congruent to ΔDGF and ΔEFG is congruent to ΔEGD by Side-side-side (SSS) postulate
Subtract X from 4x which leaves you with -27 = 3x
now divide 27 by 3 and that leaves you with x= 9