3x+4+5=6(x-5)
3x+9=6x-30
6x-3x=9+30
3x=39
x= 13
3× 13+4+ 13=56 (person)
There are 56 students taking part in the math contest.