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?

Alice --- x

Peter --- x+5
John ---- 2x+10

5 years from now:
John -- 2x+15
Alice -- x+5

2x+15 = 3(x+5)
-x = 0
x = 0

This question is bogus, even though the answer meets the original conditions.
Unless Alice was just born, it makes little sense

i.e.
Alice -- 0 years
Peter --5 years
John -- 10 years

in 5 years:
Alice = 5
Peter = 10
John = 15 ---> John is indeed 3 times as old as Alice

Check your typing of it, or the question itself

5 years

Let's solve this step by step:

Step 1: Assign variables
Let's assign variables to the given information:
Let John's age be J.
Let Peter's age be P.
Let Alice's age be A.

Step 2: Translate the given information into equations
From the first sentence, we know that John is twice as old as Peter:
J = 2P

From the second sentence, we know that Peter is 5 years older than Alice:
P = A + 5

From the third sentence, we know that in 5 years John will be three times as old as Alice:
J + 5 = 3(A + 5)

Step 3: Solve the equations
Using the equations we derived in Step 2, we can substitute the values and solve for Peter's age.

Substitute equation J = 2P into the equation J + 5 = 3(A + 5):
2P + 5 = 3(A + 5)

Substitute P = A + 5 into the equation 2P + 5 = 3(A + 5):
2(A + 5) + 5 = 3(A + 5)

Simplify the equation:
2A + 10 + 5 = 3A + 15

Combine like terms:
2A + 15 = 3A + 15

Subtract 2A from both sides:
15 = A + 15

Subtract 15 from both sides:
0 = A

Therefore, Alice's age is 0.

Substitute A = 0 into the equation P = A + 5:
P = 0 + 5

Simplify:
P = 5

So, Peter is currently 5 years old.

To solve this problem, we need to set up equations based on the given information. Let's assign variables to each person's age.

Let's say Peter's age is x. Since John is twice as old as Peter, John's age would be 2x.

According to the given information, Peter is 5 years older than Alice. Let's say Alice's age is y. So, Peter's age would be y + 5.

In 5 years, John will be three times as old as Alice. Therefore, we need to consider the future ages of John and Alice. John's future age would be 2x + 5, and Alice's future age would be y + 5 + 5 (since she is currently y years old).

Based on this information, we can set up the following equation:

2x + 5 = 3(y + 5)

Now, let's solve for x to determine Peter's current age.

2x + 5 = 3y + 15
2x = 3y + 15 - 5
2x = 3y + 10
x = (3y + 10)/2

Now, since we don't have any information regarding Alice's age (y), we cannot determine Peter's current age (x) precisely. We would need additional information or constraints to find a specific value for Peter's age.