Since we know these angles are supplementary (add to 180) because they are on a straight line, we can add them together, set that to 180 and solve for x
5x+20+3x-8=180 (combine like terms) 8x+12=180 (subtract 12 from both sides) 8x=168 (divide both sides by 8) X=21