document.write( "Question 37555: If it costs $65 to travel 200km on a train and $80 to travel 350km, then;
\n" ); document.write( "a) express the cost, y, as a linear equation of distance traveled, x.
\n" ); document.write( "b) accordingly, how much would it cost to travel 500 km?\r
\n" ); document.write( "\n" ); document.write( "I have the answer which should be a) y= 0.010x + 45
\n" ); document.write( " b) $95\r
\n" ); document.write( "\n" ); document.write( "But have no idea how they got the answer. Should I be assigning two variables x and y to represent the unknow values. Write two equations using both variables and then solve the system of the given equations?
\n" ); document.write( "Not quite sure where to begin?
\n" ); document.write( "thank you
\n" ); document.write( "claudia
\n" ); document.write( "

Algebra.Com's Answer #23179 by fractalier(6550)\"\" \"About 
You can put this solution on YOUR website!
If we let x be km traveled and y be the cost (in $), we have been given two points, (x, y). These points are (200, 65) and (350, 80). We treat these as any two (x, y) points. Let us first find the slope:
\n" ); document.write( "m = (y2 - y1) / (x2 - x1)
\n" ); document.write( "m = (80 - 65) / (350 - 200)
\n" ); document.write( "m = 15 / 150
\n" ); document.write( "m = 0.10
\n" ); document.write( "Now we use the point slope form to get the equation of the line:
\n" ); document.write( "y - y1 = m(x - x1) now plug in
\n" ); document.write( "y - 65 = .1(x - 200)
\n" ); document.write( "y - 65 = .1x - 20
\n" ); document.write( "y = .1x + 45
\n" ); document.write( "This IS the correct answer, not what you have. Notice the difference between .1 and .01
\n" ); document.write( "b) Now plug in x = 500
\n" ); document.write( "y = .1x + 45
\n" ); document.write( "y = .1(500) + 45
\n" ); document.write( "y = 50 + 45
\n" ); document.write( "y = 95
\n" ); document.write( "There you go...
\n" ); document.write( "
\n" );