Three Maths classes; X, Y, and Z take an algebra test.
The average score in class X is 83.
The average score in class Y is 76.
The average score in class Z is 85.
The average score of all students in class X and Y together is 79.
The average score of all students in classes Y and Z together is 81.
What is the average of all the three classes?