They helped each other remain cheerful and lift their spirits when they needed lifting. Hermione was there for him and the other Weasleys when Arthur was attacked by Nagini. Fred was there for her a few months later while she healed from the curse Dolohov cast on her. He admitted that he felt guilty about not being there to help.