Not complicated. Do what feels comfortable.
I usually ride in the big ring. When I feel enough resistance on a hill, I shift to a lower rear gear. When I'm about halfway through the gears, I shift to the middle ring. If I run out of gears, I shift to the small ring.
Reverse the order as the hill flattens out.
Switch back to the higest gear and big ring for the downhills.