the cheap answer is, we divide 500 by (2+3+5+10) and then distribute accordingly.
[tex]\bf \cfrac{500}{2+3+5+10}\implies \cfrac{500}{20}\implies \cfrac{25}{1}\implies 25 \\\\\\ \stackrel{2\cdot 25}{2}~~:~~\stackrel{3\cdot 25}{3}~~:~~\stackrel{5\cdot 25}{5}~~:~~\stackrel{10\cdot 25}{10}\qquad \implies \qquad 50~~:~~75~~:~~125~~:~~250[/tex]