Where are you getting those numbers from? Doesn't make sense to me.
I would look at it like this. There are 6 positions for the letters, 1-6. A cannot be in position 1 or 6. So fix A in a certain position and then calculate all the arrangements when A is at that spot. Then move A to the right one and repeat. Go until A reaches position 5. Add up your answers.