You got this far:

Since the denminators are the same, you can simply multiply both sides by (x-2)(x-4) to get

Now rearrange and factor to solve for x. One thing to be aware of however: note that because you had factors (x-2) and (x-4) in the denominators to start with, x cannot be equal to either 2 or 4.