Instructions

A word and number arrangement machine when given an input line of words and numbers rearranges them following a particular rule in each step. The following is an illustration of input and rearrangement. (All the numbers are two-digit numbers.)
Input : 42 prey burn 78 21 melt gulp 96 83 head
Step I : ban 23 42 prey 78 melt gulp 96 83 head
Step II : gap 44 ban 23 prey 78 melt 96 83 head
Step III : had 80 gap 44 ban 23 prey melt 96 83
Step IV : mat 85 had 80 gap 44 ban 23 prey 96
Step V : pay 98 mat 85 had 80 gap 44 ban 23
Step V is the last step of the above arrangement as the intended output of arrangement is obtained.
As per the rules followed in the given steps, find the appropriate steps for the given input.
Input : 61 rust 33 colt 86 four torn 28 49 leap

Question 167

# What is the difference between the third element from the right end in step V and the fifth element from the left end in step II ?

Solution

In step I, the word with the smallest first letter alphabetically is placed at first position and the all the middle letters are replaced by 'a'. The smallest number is placed at second position and it is increased by 2.

Similar pattern is followed in remaining steps and finally the words and numbers are arranged in descending order alternatively.

Input : 61 rust 33 colt 86 four torn 28 49 leap

StepĀ I : cat 30Ā 61 rust 33 86 four torn 49 leap

Step II : far 35Ā cat 30Ā 61 rust 86 torn 49 leap

Step III : lap 51Ā far 35Ā cat 30Ā 61 rust 86 torn

Step IV : rat 63Ā lap 51Ā far 35Ā cat 30 86 torn

Step V : tan 88Ā rat 63Ā lap 51Ā far 35Ā cat 30

StepĀ V is the last step of the arrangement.

3rd element from right end in step V = 35

5th element from left end in step II = 61

=> Difference = 61 - 35 = 26

=> Ans - (C)