document.write( "Question 60981: This is a two part question. Can anyone help me set these up. I seem to have issues with these slopes. Thanks!\r
\n" ); document.write( "\n" ); document.write( "Using point P(2,9) and Q (-3,3)\r
\n" ); document.write( "\n" ); document.write( "Find distance between P and Q.\r
\n" ); document.write( "\n" ); document.write( "Find the equation of the line passing through P and Q.\r
\n" ); document.write( "\n" ); document.write( "Thanks again!
\n" ); document.write( "

Algebra.Com's Answer #41905 by joyofmath(189)\"\" \"About 
You can put this solution on YOUR website!
The distance between two points if found by computing the hypotenuse of a right triangle using the Pythagorean Theorem \"c%5E2+=+a%5E2+%2B+b%5E2\".
\n" ); document.write( "In the case of P and Q, the length of one side of the triangle is found by calculating the distance between X values and the length of another side is found by calculating the distance between the Y values.
\n" ); document.write( "So, the y values are 2 and -3 and their difference is \"2-%28-3%29+=+5\".
\n" ); document.write( "The y values are 9 and 3. Their difference \"9-3+=+6\".
\n" ); document.write( "Use the Pythagorean Theorem to find the shortest distance between these points, the hypotenuse of the triangle with sides 5 and 6.
\n" ); document.write( "\"c%5E2+=+5%5E2+%2B+6%5E2\". So, \"c%5E2+=+5%5E2+%2B+6%5E2+=+61\" so \"c+=+sqrt%2861%29\" which is approximately \"7.81\" and that's the distance between the two points.\r
\n" ); document.write( "\n" ); document.write( "The formula for a line is \"y=mx%2Bb\" where x is the slope and b is the y-axis intercept. The slope is the ratio of the change in x to the change in y.
\n" ); document.write( "We know from our work above that the x increases by 6 for every increase in 5 that the y goes up.
\n" ); document.write( "So, the slope is: \"+m+=+6%2F5+=+1.2\".
\n" ); document.write( "So, the equation of the line is: \"+y=%286%2F5%29x%2Bb\".
\n" ); document.write( "We need to find x.
\n" ); document.write( "We can use the x and y values of either point to do that.
\n" ); document.write( "Using Q, (-3,3) we find that \"+3=%286%2F5%29%28-3%29%2Bb\".
\n" ); document.write( "Or, \"3+=+-%2818%2F5%29+%2B+b\"
\n" ); document.write( "Or, \"3%2B%2818%2F5%29+=+b\".
\n" ); document.write( "So, \"b=6.6\".
\n" ); document.write( "Thus, the equation of the line is \"y=1.2x%2B6.6\".\r
\n" ); document.write( "\n" ); document.write( "We verify this with both points:\r
\n" ); document.write( "\n" ); document.write( "If x = -3 and y = 3 then \"y=1.2%28-3%29%2B6.6\" so \"y=-3.6%2B6.6=3\".
\n" ); document.write( "If x = 2 and y = 9 then \"y=1.2%282%29%2B6.6\" so \"y=2.4%2B6.6=9\".
\n" ); document.write( "
\n" );