Please help me with the task: Find the middle number - 1

Hello, I’m working on this task:

Here is my code:


a = int(input())
b = int(input())
c = int(input())

if a <= b:
   print(a, b, c)
   print(a, c, b)
   print(c, a, b)
else:
   print(b, a, c)
   print(b, c, a)
   print(c, b, a)

I finished it but didn’t understand what I was supposed to do. How do I figure out what order to put them in and what difference does it make if a is smaller or not? Any help would be appreciated