a) The correct equation to represent how many cookies (c) and cakes (k) were sold based on the amount of money raised is:
2c + 10k = 800
This equation accounts for the fact that cookies were sold for $2 each and cakes for $10 each.
b) If the community center sold a total of 36 cakes (k = 36), we can substitute this value into the equation from part (a):
\[ 2c + 10(36) = 800 \]
Calculating that gives:
\[ 2c + 360 = 800 \]
Now, subtract 360 from both sides:
\[ 2c = 800 - 360 \] \[ 2c = 440 \]
Now, divide by 2:
\[ c = 220 \]
Thus, 220 cookies were sold.