Depends on what you actually did.
Ask yourself this - did he loan you $90,000, or
did he buy a half share in the house?
If he loaned you $90,000 as a simple cash loan, and
you used that (and maybe other money) to buy a house,
which you then sold, and pocketed some profit,
then all you owe him is what you borrowed
(yes, plus any interest that you agreed to at the time of the loan).
On the other hand, if you and he went halves in a house,
then you owe him half the proceeds of the sale.