The last-place team gets the first pick in each round (setting aside the sandwich rounds after the first round).
The first-place team gets the last pick in each round.
So the last place team gets picks 1, 31, 61 etc.
First place team gets picks 30, 60, 90 etc.