While I was walking , i found a bag full of gold coins . when i went i found that i have to give half of them to my wife to pay our debts .then i thought of what i can do with the rest of the coins . i wanted buy a new house but i realized that i need the double of money i had found . i thought about painting the house but i it would cost me (1/10) of the coins i payed for my debts . if (1/5) of the coins i had after i had payed my debts and had painted my house were ( 522) coin . what is the price of the new house ???