At a pet store, a customer buys a total of 30 animals consisting of cats and dogs. If the number of dogs is represented by d and the number of cats is represented by c, then we have the equation:
d + c = 30
Additionally, the customer bought twice as many cats as dogs. This can be expressed as:
c = 2d
How many dogs did the customer buy?