Consider the following premises. If it is cloudy, then William is a cashier. If William were a cashier, then Patricia is happy. Patricia is happy if and only if it is cloudy. Can we infer the following from them? If we can, name the inference rule being used: If it is cloudy, then William is a cashier.
That is one of the premises. Therefore, the answer is yes.