To represent the total amount raised from the sale of cookies and cakes, you can use the following equation:
\[ 2c + 10k = 800 \]
In this equation:
- \( c \) represents the number of cookies sold, with each cookie selling for $2.
- \( k \) represents the number of cakes sold, with each cake selling for $10.
- The total amount raised from both cookies and cakes equals $800.