This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] Both bodies start from rest and descend the same height, so by energy conservation both have kinetic energy $mgh$ at the bottom (taking equal masses). The ratio is 1, so $7/x=1$ and $x=7$. Answer: 7.