7-x/3=5

Subtract 7 from both sides.

-x/3 = -2

Multiply both sides by -3.

x = 6