A panel of three judges votes with switches A, B and C, where 1 means yes and 0 means no. The circuit uses three two-input AND gates fed with (A, B), (B, C) and (C, A). Their outputs go to a three-input OR gate, so the output is Y=AB+BC+CA. Of the eight possible input combinations, how many give Y=1? How many of those combinations have exactly two inputs equal to 1?