"40 enjoyed baseball. 40 enjoyed basketball. 40 enjoyed football. 20 enjoyed basketball and football. 22 enjoyed baseball and basketball. 27 enjoyed football and baseball. 12 enjoyed all three sports."

i have been working this problem for hours and i still dont get it. could u help me solve it? or help me how to solve it?