A peach orchard has 8 rows of 9 trees. An apple orchard has 6 rows of 7 trees. How many trees are in both orchards?