Always struggle first (unless it is something you know and have forgotten!) but put a time limit on it - 5 hours is too much to spend on anything! Quite often, if you can't find the answer to a problem within a reasonable amount of time you are asking the wrong question. Searching for other people's struggles and solutions will not only help you find the answer but can also reframe the question to enable you to find your own path forward.