some problem for filter

I want to filter the noise of my data but I don't know how to do .
so I make a cosine wave that is cos3t+cos13t.
then I try to filter the cos3t but I am failed.
I want to know how should I do ?