Provide your best answer for the following math problem. Give ONLY the answer, no other words or explanation.
For example:

Answer: <most likely answer, as short as possible; not a complete sentence, just the answer!>.

The problem is: in a group of dogs and people , the number of legs was 28 more than twice the number of heads . how many dogs were there ? [ assume none of the people or dogs is missing a leg . ]
14
Let x be the number of heads, then x + x (for people) + 4x (for dogs with 4 legs each) =