As an alternative, you could solve the problem using logical rules
h = |hockey| = 16
a = |football & !cricket & ! hockey| >= 1 b = |!football & cricket & ! hockey| >= 1 c = | football & cricket & ! hockey| >= 1
allSports = h - (min(a) + min(b) + min(c)) = 16 - 3 = 13