document.write( "Question 335785: Set up and Calculate.\r
\n" ); document.write( "\n" ); document.write( "The first programmer,Sammy,grossed $535 in 1 week by working 48 hours. The second programmer, Matin, grossed $587 in 1 week by working 52 hours. Time-and-a-half is paid for all hours worked in excess of 40 hours. Which programmer earns more per hour. I have to use a linear equation to do this problem.\r
\n" ); document.write( "\n" ); document.write( "Sammy takes 5 hours longer to complete 300 lines of code than Martin. Toghether, Sammy and Martin can complete the code in 6 hours. \r
\n" ); document.write( "\n" ); document.write( "Clearly explain the results showing the calculations of how long it takes each programmer to complete the code if he programs on his own. (hint:quadratic equation) and at what speed he is programming lines per hour
\n" ); document.write( "

Algebra.Com's Answer #240802 by stanbon(75887)\"\" \"About 
You can put this solution on YOUR website!
The first programmer,Sammy,grossed $535 in 1 week by working 48 hours. The second programmer, Matin, grossed $587 in 1 week by working 52 hours. Time-and-a-half is paid for all hours worked in excess of 40 hours. Which programmer earns more per hour. I have to use a linear equation to do this problem.
\n" ); document.write( "-----------------
\n" ); document.write( "Let Sammy's hourly rate be \"S\"
\n" ); document.write( "Let Martin's hourly rate = \"M\"
\n" ); document.write( "-----
\n" ); document.write( "Equations:
\n" ); document.write( "Sammy Eq: 40S + (S/2)8 = 535 dollars
\n" ); document.write( "40S+4S = 535
\n" ); document.write( "44S = 535
\n" ); document.write( "S = $12.16 per hour (Sammy's hourly rate)
\n" ); document.write( "-----------------------------------------------
\n" ); document.write( "Martin Eq;40M + (M/2)12 = 587
\n" ); document.write( "40M + 6M = 587
\n" ); document.write( "46M = 587
\n" ); document.write( "M = $12.76 per hour (Martin's hourly rate)
\n" ); document.write( "==============================================\r
\n" ); document.write( "\n" ); document.write( "Sammy takes 5 hours longer to complete 300 lines of code than Martin. Toghether, Sammy and Martin can complete the code in 6 hours.
\n" ); document.write( "Sammy DATA:
\n" ); document.write( "time = x+5 hr/job ; rate = 1/(x+5) job/hr
\n" ); document.write( "---
\n" ); document.write( "Martin DATA:
\n" ); document.write( "time = x hr/job ; rate = 1/x job/hr
\n" ); document.write( "----
\n" ); document.write( "Together DATA:
\n" ); document.write( "time = 6 hr/job ; rate = 1/6 job/hr
\n" ); document.write( "=======================
\n" ); document.write( "Equation:
\n" ); document.write( "rate + rate = together rate
\n" ); document.write( "1/(x+5) + 1/x = 1/6
\n" ); document.write( "---
\n" ); document.write( "Multiply thru by 6x(x+5)
\n" ); document.write( "6x + 6(x+5) = x(x+5)
\n" ); document.write( "6x + 6x+30 = x^2+5x
\n" ); document.write( "12x + 30 = x^2+5x
\n" ); document.write( "x^2 - 7x - 30 = 0
\n" ); document.write( "Factor:
\n" ); document.write( "(x-10)(x+3) = 0
\n" ); document.write( "Positive solution:
\n" ); document.write( "x = 10 hrs (time required by Martin to do the job alone)
\n" ); document.write( "Martin's rate is 1/10 job/hr.
\n" ); document.write( "------------------------------------
\n" ); document.write( "x+5 = 15 hrs (time required by Sammy to do the job alone)
\n" ); document.write( "Sammy's rate is 1/15 job/hr.
\n" ); document.write( "=====================================
\n" ); document.write( "Cheers,
\n" ); document.write( "Stan H.
\n" ); document.write( "=====================================
\n" ); document.write( "Clearly explain the results showing the calculations of how long it takes each programmer to complete the code if he programs on his own. (hint:quadratic equation) and at what speed he is programming lines per hour
\n" ); document.write( "
\n" ); document.write( "
\n" );