We need c perpendicular to both a=i^+j^−k^ and b=i^+2j^+k^. So c is parallel to a×b.
Computing a×b=i^11j^12k^−11=i^(1+2)−j^(1+1)+k^(2−1)=3i^−2j^+k^.
So c=λ(3i^−2j^+k^) for some scalar λ.
Using c⋅(i^+j^+3k^)=8: λ(3−2+3)=8, so 4λ=8, giving λ=2.
Therefore c=6i^−4j^+2k^.
Now c⋅(a×b)=(6i^−4j^+2k^)⋅(3i^−2j^+k^)=18+8+2=28.
The answer is 28.