Because corresponding parts in a similar polygon is in proportion, 18/12=x/5
12x=90
4x=30
2x=15
x=15/2
Done!
If you have any more questions about this problem just comment and I will answer it for you, also I would really really appreciate it if you give me brainlliest!