Given below is a frequency distribution with median 46. In this distribution, some of the frequencies are missing. Determine the missing frequencies.
Marks: 10–20, 20–30, 30–40, 40–50, 50–60, 60–70, 70–80
No. of students: 12, 30, x, 65, y, 25, 18
Total number of students = 229