Find an equation of the linear function f having a slope of -2 if f(1)=3. My teacher never taught us this, please help.

You have a point and a slope, so use the point-slope form for a a line:

y-3 = -2(x-1)