document.write( "Question 764747: define variables and write an equation to model the relationship in the table
\n" ); document.write( " payment change
\n" ); document.write( " $1 $9
\n" ); document.write( " $2 $8
\n" ); document.write( " $3 $7
\n" ); document.write( "

Algebra.Com's Answer #465668 by MathLover1(20850)\"\" \"About 
You can put this solution on YOUR website!
payment change
\n" ); document.write( " $\"1+\" $\"9\"
\n" ); document.write( " $\"2+\" $\"8\"
\n" ); document.write( " $\"3\" $\"7\"\r
\n" ); document.write( "\n" ); document.write( "if payment represents \"x\" and change \"y\", we have points (\"1\",\"9\"),(\"2\",\"8\"),(\"3\",\"7\") that should lie on same line; so, we can fine a line passing through two points:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\n" ); document.write( "\n" ); document.write( " \n" ); document.write( "\n" ); document.write( "
Solved by pluggable solver: Find the equation of line going through 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) = (1, 9) and (x2, y2) = (2, 8).
\n" ); document.write( " Slope a is \"a+=+%28y%5B2%5D-y%5B1%5D%29%2F%28x%5B2%5D-x%5B1%5D%29+=+%288-9%29%2F%282-1%29+=+-1\".
\n" ); document.write( " Intercept is found from equation \"a%2Ax%5B1%5D%2Bb+=+y%5B1%5D\", or \"-1%2A1+%2Bb+=+10\". From that,
\n" ); document.write( " intercept b is \"b=y%5B1%5D-a%2Ax%5B1%5D\", or \"b=9--1%2A1+=+10\".
\n" ); document.write( "
\n" ); document.write( " y=(-1)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( "so, equation is \"y=-x%2B10\"\r
\n" ); document.write( "\n" ); document.write( "now we can check if all three points lie on this line:\r
\n" ); document.write( "\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );