[Solution by Dr. Abubacker] $x+y=40-30=10$. The cumulative frequency up to age $17$ is $18$ and up to $18$ is $30$, so the median is $18$. Mean deviation $=\frac{5(3)+8(2)+5(1)+0+x(1)+y(2)}{40}=1.25\Rightarrow36+x+2y=50\Rightarrow x+2y=14$. With $x+y=10$: $y=4$, $x=6$. $4x+5y=24+20=44$. Answer (3).