From the given graph, we have 2 points with coordinates:

The equation of a line in slope-intercept form is given by

With the given points, we can find the slope m as follows:

which gives

Then, our line equation has the form

Now, we can find the y-intercept b by substituting one of the two given points. For instance, if we substitute point (1,2) into the last result, we get

which gives

then, the line equations is

a) The linear function is

b) What is f(6)?
In this case, we have that x=6. Then, by replacing this value into our function, we get

which gives

therefore, the answer for part b is
