the value of x is 24
these triangle are similar with AA theorem ( two angles are congruent)
the side with 5 cm long of the smaller triangle is similar with the side with 15 cm long of bigger triangle.
and 8cm long side is similar with side x
the scale factor is 3 (15/5)
so x is

good luck