The fifth-grade classes at Harvest Elementary School had an apple-tasting party. They tasted red, yellow, and green apples. There were 130 apples at the party altogether. There were 3 times as many yellow apples as green apples. There were twice as many red apples as yellow apples. How many red apples were at the party?