Paulette, quentin, and rosie each donated money to a charity. Paulette gave as much money as quentin and rosie gave together. If quentin had given three times more than he gave, he would have given $40 more than paulette. And if rosie had given $20 less, she would have given half as much as paulette. How much did paulette give?.