document.write( "Question 1037913: A taxi cab charged $17.50 for a ten mile trip and $30 for a 20 mile trip. Write an equation to find the charge per mile and the cost just to get in the cab. \n" ); document.write( "
Algebra.Com's Answer #652595 by Theo(13342)\"\" \"About 
You can put this solution on YOUR website!
this would be a straight line equation.
\n" ); document.write( "the slope intercept form of a straight line equation is:
\n" ); document.write( "y = mx + b
\n" ); document.write( "m is the slope
\n" ); document.write( "b is the y-intercept.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "let x = the number of miles.
\n" ); document.write( "let y = the cost for that number of miles.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "you have 2 points.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "(x1,y1) = (10,17.50)
\n" ); document.write( "(x2,y2) = (20,30)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the slope of a straight line equation is equalt to (y2-y1)/(x2-x1)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "that would be (30-17.50)/(20-10)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "simplify that to get slope = 12.50/10 = 1.25\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "your equation of y = mx + b becomes y = 1.25*x + b\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "now use one of the points to solve for b.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "you replace x with the x-coordinate of one of the points and you replace y with the y-coordinate of that same point and then solve for b.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "y = 1.25x + b becomes 30 = 1.25*20 + b when you use the point (20,30).\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "solve for b to get b = 30 - 1.25*20.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "simplify to get b = 30 - 25.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "combine like terms to get b = 5.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "your equation is y = 1.25*x+5\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "what this equation says is that you will pay 5 dollars to get into the cab and then you will pay 1 dollar and 25 cents for each mile that the cab takes you.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "for example:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "to go 10 miles, the cost is 5 dollars plus 1.25 * 10 = 5 dollars + 12.5 = 17 dollars and 50 cents.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "to go 20 miles, the cost is 5 dollars plus 1.25 * 20 = 5 dollars plus 25 dollars = 30 dollars.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the graph shows that to you.
\n" ); document.write( "x represents the number of miles.
\n" ); document.write( "y represents the cost to go that number of miles.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the graph is shown below:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"$$$\"\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );