Let x be the number of red marbles.
5*x=x+24
4*x=24
x=<<6=6>>6
#### 6