There are 45 steel pipes in the factory to be stacked into trapezoid, and after stacking, the upper layer is 7, and the number of layers is only 5? Determinant

There are 45 steel pipes in the factory to be stacked into trapezoid, and after stacking, the upper layer is 7, and the number of layers is only 5? Determinant

Let X be the lowest root
Because each layer has to decrease by one
Then the fifth layer needs to subtract 4
x-4=7
x=11
I'm a teacher. Thank you