I know this is easy for some, but I have no idea what happened here. Can someone explain to me? These are congruent triangles.

8x -13 = 5x + 17
3x = 30
x = 10​