you have to prove that they are similar triangles .
then you will find that x=7*3=21 because
AB/DE=1/3
im sorry i cant explain and and answering late