This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] Let the total distance be $d$. First half: $t_1=\frac{d/2}5=\frac d{10}$. Second half ($\frac d2$) is covered with $10$ m s$^{-1}$ for half the time and $15$ m s$^{-1}$ for the other half, so the average speed there is $\frac{10+15}2=12.5$ m s$^{-1}$ and $t_2=\frac{d/2}{12.5}=\frac d{25}$. Total time $=\frac d{10}+\frac d{25}=\frac{7d}{50}$. Mean speed $=\frac d{7d/50}=\frac{50}7$ m s$^{-1}$, so $x=50$. Answer: 50.