A AND B (mutually exclusive) quiz question 2

Won’t the neither cases invalidate this solution and Option D should be answer

The question itself is this:

Hint: “maximum”