A woman owns 21 pets. Each of her pets is either a bird or a dog. If her pets have a total of 76 legs, how many birds and how many dogs does she have?