To find the value of \( x \), we start by using the fact that angle F and angle H are supplementary, which means their measures add up to 180 degrees.
Given:
- The measure of angle F is 77 degrees.
- The measure of angle H is represented as \( 5x + 18 \) degrees.
We can set up the equation based on the definition of supplementary angles:
\[ 77 + (5x + 18) = 180 \]
Thus, the correct answer is:
B. \( 77 + (5x + 18) = 180 \).