Filtering of a sampled signal
The 8kHZ signal causes aliasing as we should sample at 2fmax = 2*8kHz = 16kHz (normally we should sample faster than 2fmax). It is also strange that you have 2 signal @4kHz and 8kHz but you want to use a LP at 10kHz.