We can construct a sum-of-products expression from a truth table
by writing down a product term for each line of the table where
the output is 1. Each product term contains all the input
variables: directly (ie, "A") if that variable is 1 for this
line of the truth table, or negated (ie, "not A") if that variable
is 0 for this line of the truth table. We then OR the product terms
together to get the final expression:
_ _ _ _ _ _
F(A,B,C) = A*B*C + A*B*C + A*B*C + A*B*C
_ _ _
G(A,B,C) = A*B*C + A*B*C + A*B*C + A*B*C