Macie bought a $50 shirt that was marked down 25%. After the discount was applied, she had to pay 8% sales tax. What was the total she paid for the shirt?