Step by step will be helpful

Answer:
x= 18
Step-by-step explanation:
Please see attached picture for full solution.