Question 376982
First, we set up the equality denoting this mystery number as X:

5X + 77 = 8X - 7

Combine like terms:

84 = 3X

28 = X