A Mathematics test was taken by 4 boys and 6 girls. The mean marks of the 10 students was 49.

a) Calculate the total marks obtained by 10 students.
b) If the mean marks of 6 girls was 51, calculate the mean marks of 4 boys.