document.write( "Question 632823: pat is 6 years older than his friend gary. four years ago gary's age was 7 more than half of pat's age. what are their present ages? \n" ); document.write( "
Algebra.Com's Answer #398586 by ankor@dixie-net.com(22740)\"\" \"About 
You can put this solution on YOUR website!
let p = Pat's present age
\n" ); document.write( "let g = Gary's
\n" ); document.write( ":
\n" ); document.write( "Write an equation for each statement
\n" ); document.write( ":
\n" ); document.write( "pat is 6 years older than his friend gary.
\n" ); document.write( "p = g+6
\n" ); document.write( ":
\n" ); document.write( "four years ago gary's age was 7 more than half of pat's age.
\n" ); document.write( "g - 4 = .5(p-4) + 7
\n" ); document.write( "g - 4 = .5p - 2 + 7
\n" ); document.write( "g = .5p + 5 + 4
\n" ); document.write( "g = .5p + 9
\n" ); document.write( "Replace p with (g+6), find g
\n" ); document.write( "g = .5(g+6) + 9
\n" ); document.write( "g = .5g + 3 + 9
\n" ); document.write( "g - .5g = 12
\n" ); document.write( ".5g = 12
\n" ); document.write( "multiply both side by 2
\n" ); document.write( "g = 24 yrs is Gary's present age
\n" ); document.write( "then
\n" ); document.write( "24 + 6 = 30 is Pat's present age
\n" ); document.write( ":
\n" ); document.write( ":
\n" ); document.write( "Check this in the 2nd equation
\n" ); document.write( "24 - 4 = .5(30-4) + 7
\n" ); document.write( "20 = .5(26) + 7
\n" ); document.write( "20 = 13 + 7; confirms of our answers of Pat is 30, Gary is 24\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );