When matrices are equal, corresponding terms are equal.
... 5x - 8 = 2
... 5x = 10 . . . . . . . . add 8
... x = 2 . . . . . . . . . divide by 5