GIVEN:- Rob is twice Joshua’s age.nick is 5years older than Joshua .the sum of all their ages is 45.
Now let Rob's age = x
Joshua's age = y
and Nick's age = z
Then as according to question:-
x = 2y.......................1️⃣
z = y+5.................2️⃣
x+y+z = 45...............3️⃣
Now from 1️⃣and2️⃣put the value of x and z in 3️⃣
=> 2y + y + y+5 =45
=> 4y + 5 = 45
Subtract with 5 on both sides.
=> 4y = 40
divide with 4 on both sides
=> y = 10
Now put this new value of y in equation 2️⃣
=> z = 10+5
=> z = 15
So Nick's age is 15 years old.
HOPE IT HELPED YOU.