John is two years older than David who is twice as old as Charles. If the total of the ages of John, David and Charles be 27, the how old is David? 10 13 22 4