For both molecules we find the LONGEST carbon chain. #B# is trying to trick into identifying the sidechains as the longest chain: clearly the longest alkyl chain is #10C# long. In solution, so far as anyone knows, the organic chain twists and turns; when we draw the molecule we should assume the maximum symmetry possible; i.e. a straight chain.