To dig a well, a company charges P80 for the first foot, P100 for the second foot, P120 for the third foot, and so on. The cost of each foot is P20 more than the cost of the preceding foot. What is the depth of a well that cost P23,400 to dig?