A bakery sells chocolate chip cookies and oatmeal cookies in packages of 12 each. On Saturday, the bakery sold half as many oatmeal cookies as chocolate chip cookies. If the total number of cookies sold on Saturday was 504, how many packages of chocolate chip cookies were sold?