document.write( "Question 349928: At the park, I saw boys and dogs. I saw thirty two heads and 104 legs. How many were dogs and how many boys? Which equations did you use? I got 12 boys and 20 dogs by trial and error but I know that there must be some equations to solve. Please help. Thank you. \n" ); document.write( "
Algebra.Com's Answer #250087 by mananth(16946)\"\" \"About 
You can put this solution on YOUR website!
total 104 legs
\n" ); document.write( "32 heads
\n" ); document.write( "..
\n" ); document.write( "let there be x boys & y dogs
\n" ); document.write( "..
\n" ); document.write( "2x+4y=104..................1
\n" ); document.write( "x+y=32......................2
\n" ); document.write( "multiply equation 2 by -2 and add it to equation 1
\n" ); document.write( "-2x-2y=-64
\n" ); document.write( "add
\n" ); document.write( "4y-2y=104-64
\n" ); document.write( "2y=40
\n" ); document.write( "y=20 dogs
\n" ); document.write( "32-20= 12 boys
\n" ); document.write( "...
\n" ); document.write( "12*2+20*4=104
\n" ); document.write( "
\n" ); document.write( "
\n" );