We are given the following information
and told to find x. Recall that this is a right triangle, so to solve the problem we will use trigonometry. Recall that for a right triangle we have the following
For the given angle, its cosine is defined as follows

In our case we have a=x, c=18 and the angle is 12°. So we get

By multiplying both sides by 18, we get

using a calculator, we get

So x is approximately 16.607 m