Write a rule for the function represented by the table.

Input (x) 0 1 2 3 4
Output (y) 3 6 9 12 15

A. y = 3x
B. y = 3x + 3
C. y = 5x + 1
D. y = x + 5

B. y = 3x + 3