document.write( "Question 665864: Could you please help me with the following problem:\r
\n" ); document.write( "\n" ); document.write( "The following data was obtained for two variables x and y.
\n" ); document.write( "x 2 4 -2 3 6
\n" ); document.write( "y 5 0 15 2.5 -5
\n" ); document.write( "Write an equation expressing the relationship of x and y.
\n" ); document.write( "

Algebra.Com's Answer #414138 by MathLover1(20850)\"\" \"About 
You can put this solution on YOUR website!
x 2 4 -2 3 6
\n" ); document.write( "y 5 0 15 2.5 -5\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "take two points and find equation of the line passing through these points\r
\n" ); document.write( "\n" ); document.write( "(\"2\",\"5\") and (\"4\",\"0\")\r
\n" ); document.write( "\n" ); document.write( "\n" ); document.write( "\n" ); document.write( " \n" ); document.write( "\n" ); document.write( "
Solved by pluggable solver: FIND EQUATION of straight line given 2 points
hahaWe are trying to find equation of form y=ax+b, where a is slope, and b is intercept, which passes through points (x1, y1) = (2, 5) and (x2, y2) = (4, 0).
\n" ); document.write( " Slope a is \"a+=+%28y%5B2%5D-y%5B1%5D%29%2F%28x%5B2%5D-x%5B1%5D%29+=+%280-5%29%2F%284-2%29+=+-2.5\".
\n" ); document.write( " Intercept is found from equation \"a%2Ax%5B1%5D%2Bb+=+y%5B1%5D\", or \"-2.5%2A2+%2Bb+=+10\". From that,
\n" ); document.write( " intercept b is \"b=y%5B1%5D-a%2Ax%5B1%5D\", or \"b=5--2.5%2A2+=+10\".
\n" ); document.write( "
\n" ); document.write( " y=(-2.5)x + (10)
\n" ); document.write( "
\n" ); document.write( " Your graph:
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "

\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"y=-2.5x+%2B+10\"\r
\n" ); document.write( "\n" ); document.write( "now take other two points\r
\n" ); document.write( "\n" ); document.write( "(\"-2\",\"15\") and (\"3\",\"2.5\")\r
\n" ); document.write( "\n" ); document.write( "\n" ); document.write( "\n" ); document.write( " \n" ); document.write( "\n" ); document.write( "
Solved by pluggable solver: FIND EQUATION of straight line given 2 points
hahaWe are trying to find equation of form y=ax+b, where a is slope, and b is intercept, which passes through points (x1, y1) = (-2, 15) and (x2, y2) = (3, 2.5).
\n" ); document.write( " Slope a is \"a+=+%28y%5B2%5D-y%5B1%5D%29%2F%28x%5B2%5D-x%5B1%5D%29+=+%282.5-15%29%2F%283--2%29+=+-2.5\".
\n" ); document.write( " Intercept is found from equation \"a%2Ax%5B1%5D%2Bb+=+y%5B1%5D\", or \"-2.5%2A-2+%2Bb+=+10\". From that,
\n" ); document.write( " intercept b is \"b=y%5B1%5D-a%2Ax%5B1%5D\", or \"b=15--2.5%2A-2+=+10\".
\n" ); document.write( "
\n" ); document.write( " y=(-2.5)x + (10)
\n" ); document.write( "
\n" ); document.write( " Your graph:
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "

\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"y=-2.5x+%2B+10\"..same equation\r
\n" ); document.write( "\n" ); document.write( "now check if all points lie on same line:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\r
\n" ); document.write( "\n" ); document.write( "since all points lie on same line, equation \"y=-2.5x+%2B+10\" is an equation that expressing the relationship of \"x\" and \"y\" from your table\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );