Multiply (length) times (width). For a square, both numbers will be the same.
Let the marks of the students in class 1 be

the average of these 12 marks is 90, so

which means

similarly, let

be the marks of the students in the second class,
so

which means

The 32 students averaged:
(-2,6) iissssssss the answer