A STEM club had a bake sale and sold cookies and donuts. If they sold three times as many cookies as donuts, charged $2.50 per cookie and $4.00 per donut, and earned a total of $322.00, then how many donuts did they sell?