Solve two-arrays