The sum of five consecutive natural numbers is 45. What is the number in the middle? To solve the equation

The sum of five consecutive natural numbers is 45. What is the number in the middle? To solve the equation

Let the number in the middle be X
(x-2)+(x-1)+x+(x+1)+(x+2)=45
5x=45
∴x=9
The number in the middle is nine