You'll need what's called a nested loop. You have one loop that counts down from 12 to 1, and inside that loop have another loop that counts down from the value of the iteration you're in to 1. The logic goes something like this:
loop from i = 12 to 1
loop from j = i to 1
print j
end loop
print newline
end loop