Sam, to find x, apply what you know about same-side interior angles (they are supplementary). You can write an equation saying angle + angle = 180, then solve for x.
do what brian told you. just make an equation write it saying that after the equal sign there has to be a 180. then just solve the equation with simple algebra multi-atep equation.