For the information given in the statement you have
[tex]\frac{\text{number of cups of red paint}}{\text{ number of cups of yellow paint}}=\frac{3}{5}[/tex]Then
[tex]\frac{3}{5}=\frac{24\text{ cups of red paint}}{\text{ x cups of yellow paint}}[/tex]Solving for x
[tex]\begin{gathered} \frac{3}{5}=\frac{24}{x} \\ \text{Apply cross multiplication} \\ 3\cdot x=24\cdot5 \\ 3x=120 \\ \text{ Divide by 3 into both sides of the equation} \\ \frac{3x}{3}=\frac{120}{3} \\ x=40 \end{gathered}[/tex]Therefore, he must get 40 cups of yellow paint to make his orange paint mixture.