In an orchard, there are three types of fruit trees: apple, orange, and pear trees. The ratio of apple trees to orange trees is 5:3, and the ratio of orange trees to pear trees is 2:1.
If there are a total of 160 fruit trees in the orchard, how many apple trees are there?