There are three more apple trees than pear trees in the yard. Altogether there are 35 trees. How many apple trees and how many pear trees are there?