I am struggling with the following exercise: "Determine a closed form formula for an egf that counts total strings of length $n$ with the restricted alphabet $\{A,B,C,D,E,F,F,G\}$ (not all letters must be used) such that an even number of $C$ letters are used, and at least one $G$ is used. If $a_n$ is the number of total strings, find a closed form for $a_n$.
I think I know how to get the form for $a_n$ once I have the egf but I am having some trouble finding the egf itself. I guess it makes it hard that there are two constraints. I would appreciate some help with this problem