This is LaTeX code:
[latex]
f(p) = \frac{f(0)+f(2p)}2 = \frac{k\cdot 0 + l + k\cdot(2p) + l}2 = kp+l
[/latex]