You can put this solution on YOUR website! Let D = David's age
Then his sister's age will be D-5
The sum of the squares is 193:
D^2 + (D-5)^2 - 193 = 0
2D^2 - 10D - 168 = 0
D^2 - 5D - 84 = 0
This factors as:
(D+7)(D-12) = 0
Take the positive solution, D = 12
So David is 12 and his sister is 7