Basically, the basis of Le Chatalier's principle is that if you add a reactant or product, the reaction will shift to favor the removal of that reactant or product. If you remove a reactant or product, the reaction will shift to form that reactant or product.
So, in case (a), you are removing S(s). Since this is a product, the equilibrium will shift to form more S. This will consequently promote the removal of H2S because H2S is used up in the production of sulfur.
For (b), you can think of cooling the reaction as removing heat. Since heat is a product of the reaction, its removal will cause the reaction to favor the production of more heat.