State tax filing

Thank you Daniel. I receive a pension beginning April 2016 throughout the year and received income for work performed from the state of NM until late March 2016. My employment with AZ overlapped NM in March when I started my new job. Do both states take into consideration my overall income with regards to paying each state its' tax? Thanks again