Two-dimensional planar flow of a viscoelastic plastic medium