Ronnie goes to the racetrack with his buddies on a weekly basis. One week he tripled his money, but then lost $12. He took his m
oney back the next week, doubled it, but then lost $40. The following week he tried again, taking his money back with him. He quadrupled it, and then played well enough to take that much home, a total of $224. How much did he start with the first week?