Wolves and dogs have been living on this planet for thousands of years because they work together .