I'm sure there's a more general way to do this, but as we're talking about there are only 5 possibilities so it's not that hard to do a "chug and plug." If you want a bit more rigor, then note that :

Since 5 is a prime there is a unique inverse of 2 so we can multiply both sides by 3 and get

The last two terms are even, so thus needs to be as well. Thus the only possible values for x are 0, 2, and 4.

-Dan