Consider the following premises. For all z, if z were a janitor, then z is sleeping. James is a janitor. Elisabeth is excited. Can we infer the following from them? If we can, name the inference rule being used: James is a janitor.
That is one of the premises. Therefore, the answer is yes.