Let A={1,2,3,4} and B={1,2,3,4,5}. The relation
R={(1,2),(1,3),(2,4),(3,4),(3,5),(4,5)}
is a subset of A×B. What is the greatest possible number of ordered pairs that can be retained in R so that the remaining relation becomes a function from A to B?
a) 3
b) 6
c) 4
d) 5