a man gave 5/8 of his money to his wife and spent 2/3 of the remainder.If he has spent 800$, how much did he give to his wife