new jersey resident work new york bonus allocation

live in nj and was moved to n.y. office last year. last year's bonus earned in both states (say $10m) was paid this year. it was reported on w2 as $10m ny wages and $4m nj wages. how do i include on tax return?