A part of 1500rs was lent on 10% p.A and the rest at 7% p.A. Simple interest. The total interest earned in 3 yrs was 396rs. What was the sum lent at 10% p.A?