Which relation has a domain of {3, 5, 8}?

f {(2, 8), (1, 3), (3, 5)}
g {(3, 2), (5, 1), (8, 3), (1, 4)}
h {(3, 8), (5, 3), (3, 5)}
j {(5, 1), (3, 4), (8, 2), (3, 3)}

The relation with a domain of {3, 5, 8} is either h or j. However, h is not a function since it has two outputs for the input 3. Therefore, the relation with a domain of {3, 5, 8} is j.