For any positive integer m, let ℤm be the set of residue classes modulo m. For A ⊆ ℤm and \(\overline{n}\in\mathbb{Z}_{m}\) , let the representation function \(R_{A}(\overline{n})\) denote the number of solutions of the equation \(\overline{n}=\overline{a}+\overline{a^{\prime}}\) with unordered pairs \((\overline{a},\overline{a^{\prime}})\in A\times A \) . For any integer a with (a, m) = 1, let ordm(a) be the least positive integer h such that ah ≡ 1 (mod m). Let m = 2αM, where α is an integer with α ≥ 2 and M is an odd integer with M ≥ 3. In this paper, we prove that if 2 ∣ ordp (2) for some odd prime p with p ≥ M, then there exist two distinct sets A, B ⊆ ℤm with A ∪ B = ℤm, ∣A ∩ B∣ = 2 and \(B\ne A+\overline{2^{\alpha-1}M}\) such that \(R_{A}(\overline{n})=R_{B}(\overline{n})\) for all \(\overline{n}=\mathbb{Z}_{m}\) . We also prove that if 2 ∤ ordp(2) for any odd prime p with p ∣ M and A, B ⊆ ℤm with A ∪ B = ℤm, ∣A ∩ B∣ =2, then \(R_{A}(\overline{n})=R_{B}(\overline{n})\) for all \(\overline{n}\in \mathbb{Z}_{m}\) if and only if \(B = A+\overline{2^{\alpha-1}M}\) .