Problem A:
I receive two hash digests $H(x), H(y)$ and the corresponding preimages $(x, y)$.
$H$ is a 128-bit cryptographic hash function: $H: \{0,1\}^{*} \longrightarrow \{0, 1\}^{128}$
I need to find two second preimages $(x', y')$ such that $H(x) = H(x')$ and $H(y) = H(y')$, where $x \neq x'$ and $y \neq y'$.
Problem B:
I receive one hash digest $H'(x)$ and and the corresponding preimage $x$.
$H'$ is a 256-bit cryptographic hash function: $H': \{0,1\}^{*} \longrightarrow \{0, 1\}^{256}$
I need to find one second preimage $x'$ such that $H(x) = H(x')$ , where $x \neq x'$.
Are problem A and B equivalent? In other words, do both take $2^{256}$ work?