W2 Split between 2 States - How?

I lived in Virginia for 5 months and moved to Wash. DC for the last 7 months of 2021.

I only had one W2.

Do I split Box 1 wages, interest, dividends, etc. between the two based on months?

Say total wages were $120,000

Do I enter 5 months wages ($50k) to VA. and 7 months wages($70k) to D.C.? 

Do same for total year's interest and dividends?