Tom has a box of crayons. He counts 18 crayons in total. He gives 6 crayons to his friend, but then he wins 4 more in a game. How many crayons does Tom have now?