You can see that the left and right triangles are similar triangles because they have similar angle measures.
Which means that their lengths are also proportional.
So you can set up a proportion to determine the missing length.
So something like 12/18 = x/15 and solve for x.