<s>[INST] A person has three boxes of crayons, one with 12 crayons, another with 6 crayons, and the last one with an unknown number of crayons. Mrs. Johnson gives some of the crayons from the first two boxes to her friend. She gives 1/3 of the crayons from the first box and 1/2 of the crayons from the second box. The total number of crayons she gave away from the first two boxes is equal to the number of crayons in the third box. How many crayons does the third box have?[/INST]