We want to find the measure of ∠ 4 and ∠ 5. First, let's notice that ∠ 4 and ∠ 5 form a linear pair.
Now let's recall that if two angles form a linear pair then they are supplementary angles according to the Supplement Theorem. This means that ∠ 4 and ∠ 5 are supplementary angles and the sum of their measures is 180.
m∠ 4+m∠ 5 = 180
Now, we are given that m∠ 4= 3(x-1) and m∠ 5= x+7. Let's use this information and substitute the given expressions into the equation. Then we will be able to solve for x.