In a wildlife reserve, a ranger is tracking the number of animals. There are 30 deer, 15 rabbits, and 12 foxes. One day, 4 deer get relocated to another reserve, and twice as many rabbits as deer are relocated. No foxes are relocated. How many total animals remain in the reserve after the relocation? Let's think step by step and output the final answer within \boxed{}.
user