ABDH and CEFG are two parallelograms. Find the value of x.