Read the passage given below and answer the question.
Food chains ‘P’ and ‘Q’ form an interconnection. ‘P’ initiates with wheat grass whose population supports a few grasshoppers, frogs and snakes.
‘Q’ starts with dead decaying leaves of wheat grass which are eaten by earthworms and then food chain is continued with frog of food chain ‘P’.
Identify the types of food chains ‘P’ and ‘Q’:
The logic gate equivalent to the combination of logic gates shown in the figure is