How you are taxed and what you are taxed on depends on your residency status for tax purposes. As tax…