A person borrows Rs 20,000 at 15% simple interest per annum while building a house and borrows Rs 15,000 from the cooperative society at 12% simple interest per annum at the time of his daughter's marriage one year later. How much cash will the person have, if he repaid both loans with interest by getting a retirement gratuity of Rs.56,000 after three years of his daughter's marriage?