If triangle ABC is similar to DEF then the ratio between the sides will be a constant so we can get the expression:
[tex]\frac{15}{30}=\frac{x}{36}[/tex]and we solve for x so:
[tex]\begin{gathered} x=\frac{36\cdot15}{30} \\ x=18 \end{gathered}[/tex]