Carla bought a crate of red and green apples for her bakery. The crate had 140 red apples, which were 40% of the apples in the crate. How many apples were in the crate?