Okay, here are the steps to convert each score to a z-score:
For history test:
Z = (X - Mean) / Standard Deviation
Z = (78 - 79) / 6
Z = -0.167
For math test:
Z = (X - Mean) / Standard Deviation
Z = (82 - 84) / 5
Z = 0.8
So the z-score for the history test is -0.167 and the z-score for the math test is 0.8.