My current situation is that I have 2 websites. Both websites are aiming for the same niche and are ranking for multiple low volume keywords. The problem is website B has more traffic and keyword than Website A. So we already decide to redirect A to B but instead of redirect the whole website, we like to duplicate website A ranked contents to B and then redirect the webpages. I know its not wrong as both websites and contents are owned by me. So my question is how do i do it properly to avoid being marked and be penalize by Google for duplicate content?