if its like the mobile app store you will have to buy two separate apps if its two different accounts.
my friend however says that he and his gf in some way linked their two accounts together so if he buys something she can have it and if she buys something he can have it. i dont know to do this or else i would tell you. maybe someone else on here does.