One third of the attendees at a concert left the show before the encore…

One third of the attendees at a concert left the show before the encore. Twenty more people left during the encore. After the encore, half as many people as had left before the encore left. If 76 people remained in the theater after the concert was over to try to get autographs from the band, how many people, in total, attended the concert? Please write it out step by step. Thank You.