How to Create logic

when we press L2 and P1 all the LED glow i.e all O/P are high at same time where as they should have been low.