A shopkeeper bought some apples, out of which 6 got spoiled during transportation. He earned ₹360 by selling the remaining apples at ₹15 each. In this transaction, he neither gained profit nor incurred loss. What is the cost at which he had bought each apple?