Ernest bought a set of bunk beds that was marked down 40% from an original price of $50. If he paid 10% sales tax, what was the total cost of the set of bunk beds?