firstly the formula for median should be $\displaystyle L+C(\frac{\frac{N}{2}-F}{f}) $ where$\displaystyle f $ 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