This does not work for arbitrary pairs of events.
Example: roll a fair die; A={2,4,6}, B={6}.