Given a right triangle with hypothenus of measure 34, the side opposite the angle θ of measure 30, and the side adjacent the angle theta of measure 16.
X = y + 12. You then substitute or plug in that from the first equation into the second equation. You get (y+12)+y=18, then you simplify to get your y value. In this case y = 3. The you can plug your y value into either equation. (x+3=18) or (x-3=12) or (x=3+12) either way you get x=15 and y=3.