document.write( "Question 526481: Hello,\r
\n" ); document.write( "\n" ); document.write( "I'm stuck on this word problem. At the Halloween event there were 335 people in costume. There were 31 fewer vampires than witches and four times as many ghosts as all of the vampires and witches together. How many ghosts were there?\r
\n" ); document.write( "\n" ); document.write( "Thanks for your help.
\n" ); document.write( "

Algebra.Com's Answer #348534 by stanbon(75887)\"\" \"About 
You can put this solution on YOUR website!
At the Halloween event there were 335 people in costume. There were 31 fewer vampires than witches and four times as many ghosts as all of the vampires and witches together. How many ghosts were there?
\n" ); document.write( "---------------------
\n" ); document.write( "Equations:
\n" ); document.write( "v + w + g = 335
\n" ); document.write( "v = w-31
\n" ); document.write( "g = 4(v+w)
\n" ); document.write( "-----------------
\n" ); document.write( "Rearrange the equations:
\n" ); document.write( "v + w + g = 335
\n" ); document.write( "v - w + 0 = -31
\n" ); document.write( "4v+4w - g = 0
\n" ); document.write( "----
\n" ); document.write( "I used a matrix method to get:
\n" ); document.write( "v = 18
\n" ); document.write( "w = 49
\n" ); document.write( "g = 268 (# of ghosts)
\n" ); document.write( "===================
\n" ); document.write( "Cheers,
\n" ); document.write( "Stan H.
\n" ); document.write( "
\n" );