Phil is twice as old as James, Peter is 3 years younger than Phil, the sum of their ages is 32. Find their individual ages

phil = 2*james

peter = phil-3, so peter = 2*james - 3
phil+james+peter = 32

2j + j + 2j-3 = 32
5j = 30
j=6
...