Here, we have to analyse the words and ages
The first statement is "Tom is younger than Andy" means Andy is older than Tom. So first comes Andy and then Tom. Let's Rank Andy =1 and Tom = 2 with 1 assigned to the older.
Now, the next statement is "John is not older than Tom" This means John is younger than Tom. This also means Tom is older than John. So John would become the youngest and hence we assign John = 3 (meaning the youngest)
Ordering from Youngest to oldest would be John (Rank 3), Tom (Rank 2) and Andy (Rank 1)
To conclude the order from youngest to oldest would be John,Tom,Andy