Let S be the total number of students. Then
0.2S + 42 = S
0.8S = 42
S = 42/0.8 = 52.5
Wow, the class has half a student!
Are you sure you didn't mean 40 students like to play soccer?
Tem certeza que não quis dizer que 40 alunos gostam de jogar futebol?