Brianna received a $398 paycheck last week and then spent $49 of her earnings on a gift. How much of her earnings remained after she bought the gift?