A bakery makes a special batch of cookies that are composed of three different types: chocolate chip, oatmeal raisin, and peanut butter. The ratio of chocolate chip to oatmeal raisin cookies is 5:3, and the ratio of oatmeal raisin to peanut butter cookies is 2:5. If there are a total of 240 cookies made, how many of each type of cookie were baked?
Let the number of chocolate chip cookies be represented by $c$, oatmeal raisin cookies be represented by $o$, and peanut butter cookies be represented by $p$. You can set up the following equations:
1. $c + o + p = 240$
2. $\f\frac{c}{o} = \f\frac{5}{3}$
3. $\f\frac{o}{p} = \f\frac{2}{5}$