When flying from A to B the aircraft experiences a headwind component of 60kt

Our TAS is 380kt so our actual ground speed will be 320kt

So the distance from A to B is 480NM at 320kt this will take 90 minutes.

Since we experienced a headwind from A to B I will assume we will experience a tail wind from B - A (it would be nice if the question confirmed this )

Once again our TAS will be 380kt and if we include the tail wind (60kt) our ground speed will be 440kt from B to A.

The distance remains 480NM and at a ground speed of 420kt this will take 65 minutes.

65 minutes + 90 minutes = 2 Hours and 35 minutes