firstly the formula for median should be where is the frequency, of the class the median is in, not the cumulative frequency like how you used it. same goes for the formula for first and third quartile.

however i tried using the correct formula but still did not get the correct answer. i must be missing something