[tex]p\%=\frac{p}{100}\\\\50\%=\frac{50}{100}=\frac{5}{10}=\frac{1}{2}\\\\p\%\ of\ the\ number\ x=\frac{p}{100}\cdot x\\\\therefore\\\\\frac{1}{2}\cdot x=24\ \ \ \ |divide\ both\ sides\ by\ \frac{1}{2}\ (multiply\ both\ sides\ by\ \frac{2}{1}=2)\\\\\boxed{x=48}[/tex]