The ratio of red apples to green apples on a farm is 3:1. If there are 180 red apples on the farm, how many green apples are there?