If you bought both under your email, then you have 2 keys registered to your account now. You'll need to have your friend make an account for himself, then contact support@stardock.com to transfer one of the registrations to his account.
In the future, there is a gift option in the store that registers the game under the target account instead of yours, so you can use that 