A) To represent how many cookies (c) and cakes (k) were sold, we can write the equation based on the total amount of money raised from selling cookies and cakes. The total amount raised from cookies can be expressed as \(2c\) (since each cookie sold for $2), and the total from cakes can be expressed as \(10k\) (since each cake sold for $10). Therefore, the equation representing the total money raised is:
\[ 2c + 10k = 800 \]
B) If the community center sold a total of 36 cakes, we can substitute \(k = 36\) into the equation we derived:
\[ 2c + 10(36) = 800 \]
Calculating \(10(36)\):
\[ 10 \times 36 = 360 \]
Now substitute that back into the equation:
\[ 2c + 360 = 800 \]
Next, we subtract 360 from both sides:
\[ 2c = 800 - 360 \] \[ 2c = 440 \]
Now, divide both sides by 2 to solve for \(c\):
\[ c = \frac{440}{2} \] \[ c = 220 \]
So, the community center sold 220 cookies.