Peter placed an order with an online nursery for 6 apple trees and 5 azaleas and the order came to $147. The next order for 3 apple trees and 4 azaleas came to $96. What was the cost for each apple tree and for each azalea?