During a school fundraiser, a class sells two types of cookies: chocolate chip cookies and oatmeal raisin cookies. The chocolate chip cookies are sold for $2 each, while the oatmeal raisin cookies are sold for $3 each.
If the class sells a total of 100 cookies and earns $240 from the sales, how many of each type of cookie did they sell?