A cab charges $3 before the ride starts, then $2 for every mile. The graph is a straight line, so this is a linear relationship. We can write y = mx + b. In this example, x is miles traveled and y is cost in dollars. The slope m tells how much y changes when x increases by 1. The y-intercept b is y when x = 0. Here m = 2 and b = 3. Other problems can use x and y for different quantities.
Sit down and the meter already says $3. Then $2 every mile. m = 2, b = 3, so y = 2x + 3. After 4 miles you pay 2 × 4 + 3 = $11.
If b is 0, there is no start fee. The line goes through (0, 0), and it is also proportional: y is always the same number times x. If b is not 0, it is still a straight line. It is just not proportional.
In a table, divide the change in y by the matching change in x to find slope m. If x increases by 1, m is simply the change in y. On a graph, this is rise divided by run: vertical change divided by horizontal change. A downward change is negative. The y-intercept b is the y-value where the line crosses the y-axis, at x = 0.