Going back to the initial scenario, suppose the number of shirts Mark bought was 39 instead of 29, with each shirt still costing $17. He still received a $1 discount on the total cost. How much did he pay in total for the shirts now?