Multiply the equation by the reciprocal of the coefficient of x.
... (-7/8)x = -5
... (-8/7)(-7/8)x = (-8/7)(-5)
... x = 40/7