Dr. Sojo’s first-period class had 54 fewer extra points than her second-period class. Together they had 438 total extra points. How many extra points did each class have?