Three years ago (-3) Jim was three times as old as Tom was then (3x). In five years (+5) Jim will be twice as old as Tom will (2x). How old is each now?
We end up with x=8. X is Tom's age, so we know that Tom was 8. Today, he'd be 11. Let's plug that into one of the two original expressions.
So, your final answer is that Jim is 24 and Tom is 11. :)