In a school fundraiser, Jessica and her friends are selling cookies in packages. Each package has a different number of cookies: one package contains 3 cookies, another 5 cookies, and the third package contains 8 cookies.
Jessica sells a total of 10 packages, making sure the number of packages containing 5 cookies is twice the number of packages containing 3 cookies. If the total number of cookies sold is 66, how many packages of 3 cookies did Jessica sell?