Translate the following inference to logic notation: For all x, x_5 will cook or x_5 is an astronaut. For all x, if x_5 were a soldier, then x_5 is a janitor. For all x, if x_5 were an astronaut, then x_5 is a soldier. For all x, if x_5 cooks, then x_5 is a sailor. For all x, if x_5 were a sailor, then x_5 is a soldier. Therefore for all x, x_5 is a janitor.
forall x: P(x) or Q(x). forall x: R(x) -> S(x). forall x: Q(x) -> R(x). forall x: P(x) -> T(x). forall x: T(x) -> R(x). Therefore forall x: S(x).