Shakib is at position 28 from the left end of the row.
There are 13 boys between Shakib and Ali.
Since Shakib is nearer to the right end than Ali, this means Ali is farther from the right end. Therefore, Ali must be to the left of Shakib.
With Ali to the left of Shakib and 13 boys between them:
Ali's position from left = Shakib's position - 13 - 1
Ali's position from left = 28 - 13 - 1
Ali's position from left = 14
The arrangement is:
Position 14: Ali
Positions 15-27: 13 boys between them
Position 28: Shakib
Therefore, Ali is at the 14th position from the left end of the row.