Planescape: Torment Hints

How do I solve the problems at the Brothel of Slating Intellectual Lusts?