Given below are the codes for the digits/symbols. Study the conditions given below and answer the questions that follow.
Conditions:
1. If both the first and last elements are composite, then interchange their codes.
2. If the second element is an odd digit and the fifth element is a symbol, then code both of them with the code of the fifth element.
3. If the first element is a perfect cube and the second last element is a symbol, then code both of them as Q
4. If the fourth element is an even prime and the last element is an odd prime, then code both of them as X.
Q. 6%5+2$66!8