Below we explain the key idea of the general method (stop at that paragraph for your hint). .
Notice $\,\ 5\mid (2^n+n)(3^n+n)\iff 5\mid 2^n+n\,$ or $\,5\mid 3^n+n,\,$ by $5$ prime, hence we reduce to solving $\,5\mid a^n+n =: f(n),\,$ for $\,a\in\{2,3\}$.
Key Idea $ $ We eliminate nasty exponential dependence on $\,n\,$ in $\,a^{\large n}\,$ by noting - by Fermat - that it is periodic $\!\bmod 5\!:\ a^{\large\color{darkorange} 4}\equiv 1\,\Rightarrow\, a^{\large n}\! =a^{\large i+\color{darkorange}4k}\equiv \color{90f}{a^{\large i}}\,$ by mod $\small\rm\color{darkorange}{exp}$onent reduction. So we get a simpler linear $ $ congruence by replacing $ $ function $\, g(n) = \color{#90f}{a^{\large n}}\,$ by constants $\,\color{90f}{a^{\Large i}},\ i = 0,1,2,3$.
Doing so $\ n = \color{}i\!+\!4\:\!\color{#c00}k\,\Rightarrow$ $\! \bmod\color{#c00} 5\!:\ \overbrace{0\equiv f(i\!+\!4k)\equiv \color{90f}{a^{\Large\color{}i}}\!+\! i\!+\!4k}^{\Large{\ \ 5\ \, \mid\, \ f(n)\ \ =\ \ \color{#90f}{a^{\LARGE n}}\ + \ n}} \equiv f(i)\!-\!k\iff \color{#c00}{k\equiv f(i)}$
therefore $\ n= i\!+\!4\color{#c00}k \,=\, i+ 4(\color{#c00}{f(i)\!+\!5}j)\,\equiv\ \bbox[5px,border:1px solid #0a0]{i\!+\!4f(i)}^{\phantom |}\pmod{\!20}$
so $\,\ \ i\!=\!0\Rightarrow n\equiv 0\!+\!4f(0)\equiv 0+4\{\ 1,\,\ \ 1\}\equiv\bbox[5px,border:1px solid #0a0]{\ \ 4,\,\ 4}\ $ for $\,a\in\{2,3\}$
$\quad\ \ \ i\!=\!1\:\!\Rightarrow n^{\phantom{|^I}}\!\!\!\!\equiv 1\!+\!4f(1)\equiv1+4\{\ 3,\,\ \ 4\}\equiv \bbox[5px,border:1px solid #0a0]{13,17}\,$
$\quad\ \ \ i\!=\!2\:\!\Rightarrow n^{\phantom{|^I}}\!\!\!\!\equiv 2\!+\!4f(2)\equiv2+4\{\ 6,\ 11\}\equiv \bbox[5px,border:1px solid #0a0]{\:\! \ 6, \ 6}\,$
$\quad\ \ \ i\!=\!3\:\!\Rightarrow n^{\phantom{|^I}}\!\!\!\!\equiv 3\!+\!4f(3)\equiv3+4\{11,10\}\equiv \bbox[5px,border:1px solid #0a0]{\ \ \:\! 7,\ 3}\,$
So we conclude the solutions are $\ n\equiv \bbox[5px,border:1px solid #0a0]{3,4,6,7,13,17}\,\pmod{\!20}.\,$ Note each solution extends to $\,6\,$ solutions below $120\!:\ n+20k,\, k = 0,1,2\ldots,5,\,$ so now it is easy to compute the sought sum.
Remark $ $ The same idea works generally. If $\,g(n)\,$ has period $\,\ell,\,$ so $\ g(i+ \ell k) = g(i),\,$ then we can solve $\,f(n,g(n)) \equiv a\pmod{\!m}\,$ by using this periodicity to eliminate the function $\,g(n)\,$ as above -see here for further detail, which includes another worked example.