What am I?

Alone I am 24th with a friend I am 20. Another friend and I am unclean.