How search engine algorithms decide which copy is the canonical one is an open question but in most cases it is probably decided by a few simple factors. If one version is older, that will be the canon. If one appears higher in the navigation structure it may be more likely to be the canonical copy, and the site that has the greater authority it will probably be given the benefit of the doubt about owning the original if two versions appear on different sites simultaneously.
The first point to note is pretty obvious- don’t copy content from other websites and post them on your own. Even if you’re honest about where it came from, it’s not good SEO. If you want to, provide a discussion in your own words and a link to someone else’s information. Better yet, do some extra research and write your own article on the same topic. All content on your site should be original. If you don’t have the time or the inclination to write plenty of fresh and optimised content, a search engine optimisation company like us can do it for you. Our SEO services include expert copywriting.