This paper deals with two-dimensional modeling of a multifilamentary wire composed of two superconducting filaments in a conducting matrix. In order to avoid three-dimensional problem solving, a novel technique is proposed to solve the coupled problem in two dimensions. For that, it is enough to divide the filaments in several sections in the direction of the length of the wire and to impose a relation between the currents crossing the matrix and the electric fields in the different sections of the filaments. The numerical simulation results show the distributions of the current density in the modeled domain. The influence of the wire length on the total magnetization is also considered.