We have a system here, letting C = Claire's age and D = David's age,

Substituting C=2D into the 2nd equation,
C+D = 9
2D+D = 9
D = 3
Substituting D=3 back into the first equation,
C=2D
C=2*3
C=6
Therefore Claire is 6 and David is 3.
Hope that helped!
~Cam943