Using a utility from Microsoft Windows 10 Upgrade you can upgrade Windows 7 / 8.1 to Windows 10 version 1709 for free. The installed version of the system will be approximately equal to the existing one. For example, Windows 8.1 Core will become Windows 10 Home.
Next, using Microsoft Media Creation Tool you can update your system to the latest version.