Evan went to the park and saw four animals.
Each animal was either a duck or a dog. If he saw a total of 14 legs, How many of each animal did he see.