Translate the following inference to logic notation: If Joseph cooks, then it is sunny. Joseph is drinking water. For all x, if x_10 drinks water, then x_10 is cooking. Therefore it is sunny.
P(a) -> p. Q(a). forall x: Q(x) -> P(x). Therefore p.