For mean: where
For median: Check where the cumulative frequency attains half-frequency-value. The corresponding class (or the class-mark) is the median.
For the first problem, mean is 57.2 and median-class is 50-60 and the standard deviation is 15.31318
The excel-sheet of first problem is attached. Do the second problem in same way.New Microsoft Excel Worksheet (2).xls