Optimize the circuit. show before and after circuit show truth table Boolean expression Karnaugh map

Optimize the circuit.

show before and after circuit

show truth table

Boolean expression

Karnaugh map