assuming similar figures, Check the picture below.
[tex]\cfrac{x}{5}=\cfrac{10}{4}\implies \cfrac{x}{5}=\cfrac{5}{2}\implies x = \cfrac{25}{2}\implies x = 12\frac{1}{2}[/tex]