The local theater has three types of seats for Broadway plays: main floor, balcony, and mezzanine. Main floor tickets are $52 , balcony tickets are $37 , and mezzanine tickets are $31 . One particular night, sales totaled $50,512 . There were 86 more main floor tickets sold than balcony and mezzanine tickets combined. The number of balcony tickets sold is 139 more than 2 times the number of mezzanine tickets sold. How many of each type of ticket were sold?