When a word and number arrangement machine is given an input line of words and numbers, it arranges them following a particular rule. The following is an illustration of input and rearrangement.
Input: 85 faith amazing 28 47 miserable more 31 system 72 64 flawless
Step 1: miserable faith amazing 85 47 more 31 system 72 64 flawless 39
Step 2: flawless miserable faith amazing 85 47 more system 72 64 39 20
Step 3: amazing flawless miserable faith 85 more system 72 64 39 20 36
Step 4: system amazing flawless miserable faith 85 more 72 39 20 36 75
Step 5: faith system amazing flawless miserable 85 more 39 20 36 75 83
Step 6: more faith system amazing flawless miserable 39 20 36 75 83 74
Step 6 is the final step or the output for the given input.
Input: process drag 16 39 stereo 58 fetch 70 63 tamarind lubricant 88
What is the sum of the rightmost number in step 3 and the leftmost number in step 6?
Rule: each step brings the longest remaining word to the left end, and the smallest remaining number to the right end, adding 11 if even and subtracting 11 if odd.
Step 3: process tamarind lubricant drag stereo fetch 70 63 88 27 28 69; rightmost number 69
Step 6: drag fetch stereo process tamarind lubricant 27 28 69 52 81 99; leftmost number 27
Sum = 69 + 27 = 96.
Want more like this? Create a free account to practise a full test, track your progress, and get spaced-repetition review.
Practise on Mcqkart →🎓 Book an expert →