AMC 10B 2024 (Problem 25)

Each of 27 bricks (right rectangular prisms) has dimensions a×b×ca\times b\times c, where aa, bb, and cc are pairwise relatively prime positive integers. These bricks are arranged to form a 3×3×33\times3\times3 block, as shown on the left below. A 28th brick with the same dimensions is introduced, and these bricks are reconfigured into a 2×2×72\times2\times7 block, shown on the right. The new block is 1 unit taller, 1 unit wider, and 1 unit deeper than the old one. What is a+b+ca+b+c?
Twenty-seven rectangular bricks arranged in a 3 by 3 by 3 block, and twenty-eight bricks rearranged into a 2 by 2 by 7 block, with brick dimensions a, b, and c labeled.
(A)  88\text{(A)}\;88(B)  89\text{(B)}\;89(C)  90\text{(C)}\;90(D)  91\text{(D)}\;91(E)  92\text{(E)}\;92