X had started business with Rs.2,00,000 in the beginning of the year. During the year, he borrowed Rs.1,00,000 from Y. He further introduced Rs.2,00,000 in the business. He also gave Rs.50,000 as loan to his son. Goods given away as charity by him were Rs.20,000. Profits earned by him were Rs.2,50,000. He also withdraw Rs.30,000 from the business. His capital at the end of the year would be__________.