Here the word "heart" refers to the thoughts and the word "soul" refers to the emotions. Together they refer to the total person. Alternate translation: "thought the same way and wanted the same things" (See: [[rc://en/ta/man/translate/figs-metonymy]])