A television was originally priced at $522, but Sam waited to buy it until the television was on sale for 50% off. If he paid 8% sales tax on the sale price, how much did he pay in total?