Design a circuit to capture the pressing of buttons (momentary switches). The circuit should have two LEDs "A" and "B", and two buttons, "A" and "B". Whichever button was last pressed should determine which of the two LEDs is lit. The LED must remain lit even after its button is released. You may use only combinatorial logic gates and resistors in addition to the buttons and LEDs.