A statistician is compiling neighborhood demographics for an apartment building in New York City. She determines that there are 46 male and female residents in the building. One month after her census, 6 male residents move out of the building, resulting in 3 times as many female as male residents in the apartment building. How many female residents were originally in the building?