In a class of 45 students, there are 20 girls who scored an average of 42 marks in a test of 50 marks. If the class average is 36, what are the average marks of the boys?