Bernadette had a sum of money. She gave 2/7 of her money and another $105 to her parents. Then she gave 4/9 of the remaining money to her sister. She had 1/3 of her original amount of money left. How much did she have at first?