The table shows a different number of rides along with the cost.
Each number of rides has a different cost. Therefore, it is a linear function that can be written as y = mx + b
Here, b is the y-intercept or the point at which the line crosses the y-axis. It lies on x = 0. For 0 rides, the cost would also be zero. Therefore, b = 0.
Also, m is the slope that is the difference of y values over the x values. Therefore, it is calculated using
m = (y2 - y1) / (x2 - 1)
To find that, we need to take two points from the graph. Let's pick the first two points:
(2, 3)
(5, 7.5)
Just put the values in the slope equation
m = (7.5 - 3) / (5 - 2)
m = 4.5/ 3
m = 1.5
Now, put the values of m and b in the standard equation.
y = mx + b
y = 1.5x + 0
y = 1.5x
Therefore, y = 1.5x calculates the cost to go on x number of rides.