A test has $15$ questions. Each correct answer earns $7$ points, each unanswered question $3$ points, and each wrong answer $0$. Some scores can be obtained in exactly three ways. What is their sum?
If $7c+3u=7c'+3u'$, then $7(c'-c)=3(u-u')$, so $c'-c$ is a multiple of $3$: the ways of getting a score are $(c+3k,u-7k)$ (with $c+u\le15$). Exactly three ways means $(c,u)$, $(c+3,u-7)$, $(c+6,u-14)$ are valid while $(c-3,u+7)$ and $(c+9,u-21)$ are not.
So $u\ge14$, which leaves $(c,u)\in\{(0,14),(1,14),(0,15)\}$, giving scores $42$, $49$, $45$.