The rectangles shown are similar. What is the value of X?
A7
B12
C8
D6
A7
B12
C8
D6