There are
\({10 \choose 7} - {4\choose 1} {6 \choose 3}\)
solutions.