A cycle agent buys 30 bicycles, of which 8 are first grade and the rest are second grade, for Rs. 3150. Find at what price he must sell the first grade bicycles so that if he sells the second grade bicycles at three quarters of the price, he may make a profit of 40% on his out lay?