Answer:
3 and 9
Step-by-step explanation:
let Peter's age be x then James is x + 6
The average of their ages is twice Peter's age, that is
[tex]\frac{x+x+6}{2}[/tex] = 2x
[tex]\frac{2x+6}{2}[/tex] = 2x
x + 3 = 2x ( subtract x from both sides )
3 = x
Then Peter is 3 years old and James is x + 6 = 3 + 6 = 9 years old