You could spend £30,000 over a dog's lifetime, £24,000 for a cat