There are 5 animals in the field. Some are horses and some are ducks. There are 14 legs in all. How many of each animal are in the field?​