the measure of those two angles equals 180 since it forms a line
so you add up both angles and set that equal to 180.
(I'll use x as the variable but it's still the same answer)
5x-3+9+x=180
combine like terms
6x+6=180
subtract 6
6x=174
then divide by 6
x=29