Amit has goods of a certain value with him. He sells goods worth Rs. 7000 with 35% profit. Then, he sells goods worth RS. 25000 with 45% profit and goods worth Rs. 10000 with 10% profit. The remaining goods he sells for 20% loss. If the overall profit is 22%, then the goods that he sold for 20% loss were worth of___?