Put the verb in brackets into the correct tense.
If I ... (prepare) ahead of time for my trip, I wouldn't have had so many problems.