document.write( "Question 196240: Thrifty Parking Garage has 40 parking spaces. Each space can be used by a car or a motorcycle (no trucks). One day when all 40 spaces are in use, the owner walks through the garage and looks at each vehicle. He tells his assistant, \"There are 152 wheels in this garage right now.\" How many motorcycles are in the garage? \n" ); document.write( "
Algebra.Com's Answer #147356 by edjones(8007)\"\" \"About 
You can put this solution on YOUR website!
Let c=number of cars and m=number of motorcycles.
\n" ); document.write( "c+m=40
\n" ); document.write( "4c+2m=152
\n" ); document.write( "m=40-c
\n" ); document.write( "4c+2(40-c)=152 substitute 40-c for m.
\n" ); document.write( "4c+80-2c=152
\n" ); document.write( "2c=72
\n" ); document.write( "c=36
\n" ); document.write( "m=4
\n" ); document.write( ".
\n" ); document.write( "Ed
\n" ); document.write( "
\n" );