Let the number of participants in Class A and Class B account for x and y of the total number of participants, respectively, with x+5y = 1 and y+4x = 1.
Solve the equations X=4/ 19, y=3/ 19.
The proportion of non-participants in Class A and Class B is (1-4/19): (1-3/19) =15/16.