Consider a cuboid all of whose edges are integers and whose base is square. Suppose the sum of all its edges is numerically equal to the sum of the areas of all its six faces. Then the sum of all its edges is.
(A) 12
(B) 18
(C) 24
(D) 36
Correct Option :- (C) 24
Explanation :-