At a grocery store, apples are stacked in a pile. The bottom row of the pile has 35​ apples and

At a grocery store, apples are stacked in a pile. The bottom row of the pile has 35​ apples and the top row has 23​ apples. Each row has \text{three}three​ less apples​ than the row below it. How many apples are in the pile?