Use simplification in the following form:
A
B
B