Answer
33.97, the other median is better.
Work Step by Step
The median class here is the 30-39 class, because that contains both the 41st and 42nd data. Hence the lower median class limit is 30. Class width is 10, n=82, m=27, the frequency of the median class is 34.
Hence by the given formula $median=30+10\cdot\left(\frac{\frac{82+1}{2}-(27+1)}{34}\right)=33.97.$ The other median is better because it is based on the actual data.