Consider the circuit shown above. The output should be the vote of the three flip flops. The switch to the ... the inverter) using relays or using chips that are not as susceptible to failure ...
it stores the value in the flip-flop. The next time a clap is sensed, the circuit is reset. Output is as simple as a LED and a buzzer, but once you have that, connecting a relay is a piece of cake.