Peaches varied directly as apples. when there were 40 peaches, there were 120 apples. how many apples went with 500 peaches?