In a certain code language, 'ANSWER' is written as 'ASNEWR', and 'BRANCH' is written as 'BARCNH'. How will 'LAWYER' be written in that language?
- ALWAEYR
- BALYWRE
- CAYLREW
- DLWAFYR
Solution & Step-by-step Explanation
Let's analyze the letter movement pattern in ANSWER → ASNEWR:
Group the letters into pairs of two:
AN → AS? No.
Let's trace the positions:
Original: 1:A, 2:N, 3:S, 4:W, 5:E, 6:R
Coded: 1:A, 3:S, 2:N, 5:E, 4:W, 6:R
Notice the positional shifts:
1st letter (A) and 6th letter (R) remain fixed in their positions.
2nd and 3rd letters (N, S) are swapped → S, N.
4th and 5th letters (W, E) are swapped → E, W.
Let's double check with BRANCH → BARCNH:
1st (B) and 6th (H) remain fixed.
2nd and 3rd (R, A) swapped → A, R.
4th and 5th (N, C) swapped → C, N.
This matches the rule perfectly!
Now let's apply this exact rule to LAWYER:
1st letter L and 6th letter R stay fixed.
Swap 2nd and 3rd letters (A, W) → W, A.
Swap 4th and 5th letters (Y, E) → E, Y.
Combining them gives LWAEYR.
Group the letters into pairs of two:
AN → AS? No.
Let's trace the positions:
Original: 1:A, 2:N, 3:S, 4:W, 5:E, 6:R
Coded: 1:A, 3:S, 2:N, 5:E, 4:W, 6:R
Notice the positional shifts:
1st letter (A) and 6th letter (R) remain fixed in their positions.
2nd and 3rd letters (N, S) are swapped → S, N.
4th and 5th letters (W, E) are swapped → E, W.
Let's double check with BRANCH → BARCNH:
1st (B) and 6th (H) remain fixed.
2nd and 3rd (R, A) swapped → A, R.
4th and 5th (N, C) swapped → C, N.
This matches the rule perfectly!
Now let's apply this exact rule to LAWYER:
1st letter L and 6th letter R stay fixed.
Swap 2nd and 3rd letters (A, W) → W, A.
Swap 4th and 5th letters (Y, E) → E, Y.
Combining them gives LWAEYR.