how many sets apart were between d&d and FF?

just curious