document.write( "Question 1204288: Jessica bought some cakes from a bakery. 1/5 of them were chocolate cakes and the rest were vanilla cakes and strawberry cakes. She bought 18 strawberry cakes. There were 24 more vanilla cakes than chocolate cakes.
\n" ); document.write( "(a) What fraction of the cakes bought were vanilla and strawberry cakes?
\n" ); document.write( "(b) How many vanilla cakes did Jessica buy?
\n" ); document.write( "

Algebra.Com's Answer #840446 by math_tutor2020(3817)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "1/5 of the cakes are chocolate
\n" ); document.write( "4/5 of the cakes are vanilla or strawberry\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "c = number of chocolate cakes
\n" ); document.write( "c+24 = number of vanilla cakes
\n" ); document.write( "18 = number of strawberry cakes
\n" ); document.write( "c+(c+24)+18 = 2c+42 = total number of cakes\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "1/5 of that total is chocolate
\n" ); document.write( "(1/5)*total = number of chocolate
\n" ); document.write( "(1/5)*(2c+42) = c
\n" ); document.write( "2c+42 = 5c
\n" ); document.write( "42 = 5c-2c
\n" ); document.write( "42 = 3c
\n" ); document.write( "3c = 42
\n" ); document.write( "c = 42/3
\n" ); document.write( "c = 14
\n" ); document.write( "Jessica bought 14 chocolate cakes.
\n" ); document.write( "She also bought 38 vanilla cakes (because c+24 = 14+24 = 38).\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "In total she bought 14+38+18 = 70 cakes.
\n" ); document.write( "1/5 of that is (1/5)*70 = 0.2*70 = 14, to match with the chocolate cake count. It confirms our answer is correct.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Answers:
\n" ); document.write( "(a) 4/5
\n" ); document.write( "(b) 38 vanilla cakes
\n" ); document.write( "
\n" ); document.write( "
\n" );