In a certain code language, ‘grapes are multi red’ is coded as ‘8 6 4 3’, ‘red people eat mango’ is coded as ‘7 4 5 2’ and ‘mango multi apple’ is coded as ‘3 5 0’. How will ‘red apple’ be coded in that language?
‘grapes are multi red’ ==> ‘8 6 4 3’
‘red people eat mango’ ==> ‘7 4 5 2’
‘mango multi apple’ ==> ‘3 5 0’
In the first and second statements, 'red' is common. So the code for this will be '4'.
In the second and third statements, 'mango' is common. So the code for this will be '5'.
In the first and third statements, 'multi' is common. So the code for this will be '3'.
Now in the third statement, 'apple' is remaining which will be coded as '0'.
So ‘red apple’ will be coded as '4 0' in that language.
Create a FREE account and get: