Inactive Tutor answered 08/17/20
Treat the dwarf and elf as one spot
you 4 for first spot, 3 for the second spot
and 2 for the third spot one choice for the last spot
so you get 4 • 3 • 2 • 1 = 24 ways.
but the dwarf and elf can be switched so you multiply by 2
24 • 2 = 48 different lines
coin flip probability of head is 1/2 each time
1/2 • 1/2 • 1/2 • 1/2 • 1/2 = 1/32 which is the same as all tails