What is a collision in a hash function?

A. 2 outputs come from the same input
B. 2 inputs map to the same output
C. There are few inputs but a lot of outputs
D. There are few outputs but a lot of inputs

B. 2 inputs map to the same output