Trevor is planting rows of trees on his property. He bought 16 orange trees, 8 apple trees, 24 pear trees, and 12 plum trees. He wants to plant the same number of trees in each row. Each row will only have one type of tree. What is the greatest number of trees he can plant in each row?