Step 1: Relation of shear deformation.
Shear strain is given by
\[
\text{Shear strain} = \frac{\text{displacement}}{\text{height}}.
\]
For the first cube,
\[
\text{Shear strain} = \frac{x_1}{L}.
\]
Step 2: Effect of doubling the side.
For the second cube, height becomes \(2L\). Since the force and material are the same, shear stress and hence shear strain remain the same.
Step 3: Calculating new displacement.
\[
\frac{x_2}{2L} = \frac{x_1}{L} \Rightarrow x_2 = \frac{x_1}{2}.
\]
Step 4: Conclusion.
The displacement of the top layer becomes \( \dfrac{x_1}{2} \).