The fourth and fifth grade raised $32 for party. The fourth grade raised 3 times as much money as the fifth grade. How much did each class raise?