Correct option is B
The contrapositive of a statement is formed by negating both the subject and the predicate of the original statement, and then reversing the order. So, the contrapositive of "All whales are mammals" is "All non-mammals are non-whales".