Write a function rule based on the table below. Thanks guys in advance :)

x f(x)
0 0
2 2
4 4

A. f(x) = 2

B. f(x) = 2x

C. f(x) = 3x - 4

D. f(x) = x