Can someone explain to me the difference between же and уж and how they are used. I know they are for emphasising but where do you put them in the sentance?

Thanks!