Bert has some cows, horses and dogs, a different prime number of each.
If the number of cows (c) is multiplied by the total of cows and horses (c+h), the product is 120 more than the number of dogs (d), that is:
c*(c+h) = 120 + d.
How many cows, horses and dogs does Bert have?