mary spends 40% of her monthly earnings on rent and 10% of the remaining amount on entertainment. If she spends $800 for rent, how much does she use for entertainment?