Explain how similarities in the genetic codes of organisms are due to common ancestry and the process of inheritance.