What is the range of the function in this table?

x y
2 1
3 4
4 4
5 2

A.
(2, 1), (3, 4), (4, 4), (5, 2)

B.
{1, 2, 4}

C.
(2, 1)

D.
{2, 3, 4, 5}