if you look at the triangle you see a small square in the corner indicating that the triangle is a 90 degree angle, therefore all the sides add up to 90. With this knowledge just add the values of the two known sides, 18 and 30, which is 48 and then subtract 48 from 90 which gives you the value of x, 42