Consider the following premises. If David were a janitor, then Susan is working. If Susan works, then Susan is sad. If Susan were sad, then David is a janitor. David is not a janitor. Can we infer the following from them? If we can, name the inference rule being used: If Susan were sad, then David is a janitor.
That is one of the premises. Therefore, the answer is yes.