tax residency after changing from F1 to J1

I am an Indian national. I was a J1 research scholar for 2 months in the summers of 2009 and 2010. Then I came back on F1 status in Aug 2011. In Sep 2018, I changed my status to J1 research scholar. What is my tax residency in the years 2019 and 2020?