contestada

Which sentence is correct?
It took me a long time to decide what to pack for the trip in my carry-on bag.
It took me a long time to decide what to pack in my carry-on bag for the trip.