"John is twice as old as his friend Peter. Peter is 5 years older than Alice. In 5 years, John will be three times as old as Alice. How old is Peter now?
Set up:
John = 2(x + 5)
Peter = x + 5
Alice = x
2(x + 5 + 5) = 3(x + 5)
Is this the correct equation?"
In the first place, "John", "Peter", and "Alice" are names, not numbers and it makes no sense to set them equal to "2(x+ 5)" "x+ 5", and "x"- especially since you have not said what "x" represents.
If you say "let x, y, and z be John's age, Peter's age, and Alice's age, respectively" then it makes sense to say
1) x= 2y (from "John is twice as old as his friend Peter").
2) y= z+ 5 (from "Peter is 5 years older than Alice").
The third condition is a little more complicated because it talks about "in five years". In five years, John's age will be x+ 5 and Alice's age will be z+ 5. Saying "In 5 years, John will be three times as old as Alice" gives
3) x+ 5= 3(z+ 5).
Since we are specifically asked to find Peter's age, y, I would use (1) x= 2y to write the (3) x+ 5= 3(z+ 5) as 2y+ 5= 3(z+ 5). That is equivalent to 2y+ 5= 3z+ 15 or 2y= 3z+ 10. We also have (2)y= z+ 5, so that z= y- 5 and then 2y= 3(y- 5)+ 10= 3y- 15+ 10= 3y- 5. From 2y= 3y- 5, y= 5. Peter is 5 years old.
Though it is not asked, John is twice as old, 10 years old. Alice's age is apparently 0 meaning, I presume, that she is a new born. These numbers, 10, 5, and 0 fit all of the information:
"John is twice as old as his friend Peter": 10= 2(5).
"Peter is 5 years older than Alice": 5= 0+ 5.
"In five years, John's age will be three times as old as Alice". Since John is 10, in five years, he will be 15. In five years, Alice will be 5 and 15= 3(5)".