document.write( "Question 282512: The ratio of chocolate to vanilla cupcakes is 5 to 4. If there are 45 cupcakes, how many of them are vanilla? \n" ); document.write( "
Algebra.Com's Answer #205100 by oberobic(2304)\"\" \"About 
You can put this solution on YOUR website!
The ratio of 5:4 means that 4/9 are vanilla.
\n" ); document.write( "Given there are 45 in total...
\n" ); document.write( ".
\n" ); document.write( "4/9 = x/45
\n" ); document.write( "180 = 9x
\n" ); document.write( "20 = x
\n" ); document.write( "x=20
\n" ); document.write( ".
\n" ); document.write( "There are 20 vanilla.
\n" ); document.write( "
\n" );