Given:
The graph of cost of taxi with respect to number of miles.
To find:
The formula for C in terms of n.
Solution:
In the given graph x axis represents the number of miles (n) and y-axis represents the cost of taxi (C).
From the given graph it is clear that, the line passes through the points (0,3) and (5,6). So, the equation of line is



Adding 3 on both sides, we get

Putting y=C and x=n, we get

Therefore, the required formula is
.