With the 3 colors - red=1, yellow=2 and green=5 - adding up to 8, that is one quarter the total of 32. Multiply each by 4 and you'll have - 4:8:20.
The answer is 6 or 8 which ever one u feel comfortable with
f(3) is where the line is on the Y axis when X is 3:
Looking at the red line when it passes over X3, the line is on Y8.
The answer is B.8