Let the total number of students be x.
According to the question,
No. of students practising dance = x2
No. of students remaining = x−x2=x2
Students playing cricket = (34) of (x2) = 3x8
Remaining students = x - x2 - 3x8 = 8x−4x−3x8
⇒ x8 = 9
x=8×9=72
Hence, the total number of students in the class = 72