Table 7 shows the chemical formulas of two detergents, namely detergent A and detergent B. Table 7: Cleaning agent A – CH₃(CH₂)₁₀COONa; Cleaning agent B – CH₃(CH₂)₁₁OSO₃Na.
Which of the following statements describes the effectiveness of both cleaning agents in hard water?