Please help! ASAP thank you

Please Help ASAP Thank You class=

Answer :

X=8
The reason is because the red figure is just a dilation of the yellow figure.
6-2=4
4+4=8
So the answer is 8