A clothing store purchased a batch of 150 shirts for a total of $1,800.
The store wants to apply a 40% markup on the cost price.
If they sell 70% of the shirts at this marked-up price and the rest at a 20% discount on the marked-up price, what is the total profit?