When you purchased avast you would have had an email with the licence attached
Copy that to the new machine
On the new system install the correct version of Avast that the licence refers to
Double click the licence and that will now activate
On the other computer uninstall Avast and download and install the free version