A jar contains candies in three different kinds of wrappers: red foil, red cellophane, and green foil. The total number of candies in the jar is 90. The ratio of candies in foil wrappers to candies in cellophane wrappers is 1:1. The ratio of red wrappers to green wrappers is 4:1. How many candies in the jar have red foil wrappers?