A nursery has $50,000 of inventory in dogwood trees and red maple trees. the profit on a dogwood tree is 28% and the profit on a red maple tree is 18%. the profit for the entire stock is 20%. how much was invested in each type of tree?