Factor them both:
and appears one time in and one time in ,
so must appear one time in the LCD.
appears one time in and no times in ,
so must appear one time in the LCD.
appears no times in and one time in ,
so must appear one time in the LCD.
So the LCD is
Edwin