Write the equation of the line that passes through the points (3, 6) and (5, 18) using function notation.

A. f(x) = 2x + 12
B. f(x) = 6x − 12
C. y = 2x + 12
D. y = 6x − 12