document.write( "Question 1171005: Suppose that a car rental agency charges a fixed amount per day plus an amount per mile for renting a car. Heidi rented a car one day and paid $88 for 180 miles. On another day she rented a car from the same agency and paid $151 for 360 miles. Find the linear function f(x) (where x is in miles and f(x) is in dollars) that the agency could use to determine its daily rental charges \n" ); document.write( "
Algebra.Com's Answer #795935 by Theo(13342)\"\" \"About 
You can put this solution on YOUR website!
the general form of the linear equation is y = mx + b
\n" ); document.write( "y is the total cost.
\n" ); document.write( "x is the number of miles driven.
\n" ); document.write( "m is the slope.
\n" ); document.write( "b is the y-intercept.
\n" ); document.write( "the y-intercept is the value of y when the value of x is equal to 0.
\n" ); document.write( "the slope is equal to (y2 - y1) / (x2 - x1).
\n" ); document.write( "(x1,y1) and (x2,y2) are data points on the line of the equation.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "you have two data points to work with.
\n" ); document.write( "they are:
\n" ); document.write( "(180,88)
\n" ); document.write( "(360,151)
\n" ); document.write( "these are in (x,y) format.
\n" ); document.write( "for example, (180,88) means y = 88 when x = 180.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "assign one of these points to (x1,y1) and assign the other point to (x2,y2)
\n" ); document.write( "i assigned (180,88) to (x1,y1) and (360,151) to (x2,y2).
\n" ); document.write( "m = slope = (y2-y1)/(x2-x1) = (151-88) / (360-180) = 63 / 180 = .35
\n" ); document.write( "y = mx + b becomes y = .35 * x + b\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "to find the value of b, replace x and y with the value from one of the points.
\n" ); document.write( "i chose (360,151).
\n" ); document.write( "y = .35 * x + b becomes 151 = .35 * 360 + b
\n" ); document.write( "solve for b to get:
\n" ); document.write( "b = 151 - .35 * 360 = 25
\n" ); document.write( "y = .35 * x + b becomes y = .35 * x + 25\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "your equation is y = .35 * x + 25.
\n" ); document.write( "when x = 0, you get y = 25
\n" ); document.write( "when x = 180, you get y = .35 * 180 + 25 = 88.
\n" ); document.write( "when x = 360, you get y = .35 * 360 + 25 = 151
\n" ); document.write( "the equation is confirmed to be good.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "your solution is that the linear equation used to determine its daily rental charges is y = .35 * x + 25.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );