F=AD+AD+AB+AC+BD+ACFG+CDEGH
=A(D+D)+AB+AC+BD+ACFG+CDEGH
=A+AB+AC+BD+ACFG+CDEGH
=A(1+B)+AC+BD+ACFG+CDEGH
=A+AC+BD+ACFG+CDEGH
=A+C+BD+ACFG+CDEGH
=A+ACFG+BD+C+CDEGH
=A(1+CFG)+BD+C(1+DEGH)
=A+BD+C
F=AD+AD+AB+AC+BD+ACFG+CDEGH
=A(D+D)+AB+AC+BD+ACFG+CDEGH
=A+AB+AC+BD+ACFG+CDEGH
=A(1+B)+AC+BD+ACFG+CDEGH
=A+AC+BD+ACFG+CDEGH
=A+C+BD+ACFG+CDEGH
=A+ACFG+BD+C+CDEGH
=A(1+CFG)+BD+C(1+DEGH)
=A+BD+C