Hi,
Sorry to hear about this issue. Logging into your Avast account *should* let you activate the subscription without and activation code. If that does not work, your only option is to submit a ticket to support. It sounds like you need two things. First, the activation code for your subscription. Second, a refund for the extra activation code you do not need. I hope a speedy solution finds a way to your system.
Brad