document.write( "Question 1207244: Hi
\n" ); document.write( "Jenny distributed some pebbles to her friends . If she gave 6 pebbles to each friend she would be 2 pebbles short . If she 5 pebbles to each friend she would have 5 pebbles left. How many pebbles did she have in total.
\n" ); document.write( "Thanks
\n" ); document.write( "

Algebra.Com's Answer #845006 by Theo(13342)\"\" \"About 
You can put this solution on YOUR website!
i get that she had 7 friends and 40 pebbles.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "here's how.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "y = number of pebbles
\n" ); document.write( "x = number of friends.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "if she gave 6 pebbles to each friend, she was 2 short leads to y - 6x = -2.
\n" ); document.write( "if she gave 5 pebbles to each friend, she had 5 left leads to y - 5x = 5.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "subtract the second equation from the first to get 0 - x = -7.
\n" ); document.write( "solve for x to get x = 7.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "when x = 7, y - 6x = -2 becomes y - 42 = -2.
\n" ); document.write( "solve for y to get y = 40.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "replace y with 40 and x with 7 in both equations and you get:
\n" ); document.write( "40 - 42 = -2 and 40 - 35 = 5.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "this confirms the values of x and y are true.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "she had 7 friends and 40 pebbles.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "your solution is that she had 40 pebbles in total.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );