A local bookstore is running a promotion where customers can receive a discount based on the amount spent. If a customer spends $50, they receive a 10% discount on their total purchase. Calculate the final purchase amount after applying this discount.