1/4 chose basketball 1/3 chose football and 2/5 chose cricket while 3 people chose tennis how many people were there in the class

Let x = number in class.

x - 1/4x - 1/3x - 2/5x = 3

Solve for x.