Tom’s cat is 8 years old.  His rabbit is half the age of his cat.  His dog is three times as old as his rabbit.  How old is the dog?
Please reason step by step, and put your final answer within \boxed{}.
user