I honestly do not know the answer. I took a screenshot of this from an online IQ test a while back. If you know where it is from, please let me know, and I will provide attribution.
The answer is
Sorry if I answered too fast.
This is because:
In a given row, the lines that are in the same position and positioning are taken away. The lines that are left combine to make the third picture.