At the dog park their are several dogs with their owners. Counting heads, there are 12, counting legs, there are 38. How many dogs and owners are there?