document.write( "Question 277656: I have searched everywhere reading everything... I do not know how to turn this problem into a quadratic equation. Sammy takes 5 hours longer to complete 300 lines of code than Martin. Together Sammy and Martin can complete the code in 6 hours. How long does it take each programmer to complete the code if they complete on their own. At what speed is each programming lines per hour \n" ); document.write( "
Algebra.Com's Answer #202118 by stanbon(75887)![]() ![]() ![]() You can put this solution on YOUR website! Sammy takes 5 hours longer to complete 300 lines of code than Martin. \n" ); document.write( "Together Sammy and Martin can complete the code in 6 hours. \n" ); document.write( "How long does it take each programmer to complete the code if they complete on their own. \n" ); document.write( "At what speed is each programming lines per hour \n" ); document.write( "------------------------------- \n" ); document.write( "Let Martin time = x hr/job ; then Martin rate = 1/x job/hr \n" ); document.write( "---------------------- \n" ); document.write( "Sammy time = (x+5)hr/job; Sammy rate = 1/(x+5) job/hr \n" ); document.write( "--------------------------- \n" ); document.write( "Together time = 6 hr/job ; Together rate = 1/6 job/hr \n" ); document.write( "--------------------------- \n" ); document.write( "Equation: \n" ); document.write( "rate + rate = together rate \n" ); document.write( "1/x + 1/(x+5) = 1/6 \n" ); document.write( "Multiply thru by 6x(x+5) to get: \n" ); document.write( "6(x+5) + 6x = x(x+5) \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) = 9 \n" ); document.write( "Positive solution: \n" ); document.write( "x = 10 hrs (Martin's time to do the job alone); his rate = 1/10 job/hr \n" ); document.write( "x+5 = 15 hrs (Sammy's time to do the job alone); his rate = 1/15 job/hr \n" ); document.write( "----------------------------------- \n" ); document.write( "Lines per Hour? \n" ); document.write( "Martin rate = (1/10)(300) = 30 lines per hour \n" ); document.write( "Sammy rate = (1/15)(300) = 20 lines per hour \n" ); document.write( "================================================= \n" ); document.write( "Cheers, \n" ); document.write( "Stan H. \n" ); document.write( " |