A store is having a promotional sale where customers can get a 20% discount on any item. Additionally, if a customer buys three or more items, they get an extra $10 off the total purchase. If Sarah buys three items priced at $50, $70, and $80 respectively, what is the total amount she pays after all discounts? Let's think step by step and output the final answer within \boxed{}.
user