How to Create logic

still This part is not working.

if i want off all LED at the same time when P1 and L2 both are HIGH(on).