Supplementary angles are two angles that add up to 180 degrees. Given that the measure of angle f is 77 degrees and the measure of angle h is (5x + 18) degrees, you can set up the equation as follows:
77 + (5x + 18) = 180
So the correct choice is:
B. 77 + (5x + 18) = 180