A teacher buys packs of notebooks to give to his students. The ratio of gold notebooks to red notebooks is represented in the tape diagram.

Gold:5
Red:3

Based on the ratio, what is the number of gold notebooks when there are 24 red notebooks?