Since the cost of flower increases as we buy them, we want to start by selecting the flower with the maximum initial cost, so that for that flower we do not pay more. Proceeding by buying the flowers in decreasing initial cost will guarantee optimality.