A dealer bought 50 caps for Rs 1500. He sold 15 for Rs. 35 each and 15 for Rs. 40 each. At what price per cap should he sell the remainder to gain 15% on his outlay?