The $40 version you see is a UPGRADE. It requires you to have a older system installed already
the $80 versions you see is a OEM copy. You can only install it on one computer and cannot install it again if you decide to build a new computer later.
Microsoft is rumored to stop selling retail copies of their OS. (you can wipe it and install it on another computer)