Answer is x= 21
Step by step
The triangles are similar based on the little red tick marks showing similar sides
We can find x by seeing a ratio of 4/ 12 = 7/x
Cross multiply
4x = 84
Divide both sides by 4 to solve for x
4/4 x = 84/4
x = 21
See attachment