The given values are f(0)=7, and f(3)=1.
The general equation of the linear function is

From the value f(0)=7, subsitute x=0 and f(0)=7 in the general equation of the linear function as follows:


From the value f(3))=1, substitute x=3 , f(3)=1, and b=7 in the general equation of the linear function as follows:

Here f(3)

Transferring 7 to the left-hand side, we get


Transferring 3 to the left-hand side, we get


Substitute m=-2 and b=7 in the general equation of the linear function as follows:

Hence the required linear function is f(x)= -2x+7.