You need pay state tax for both B and C
Since you are the resident of State C, you need pay state tax for C. And your salary comes from a company in State B, you need pay state tax for B too. Because you are non-resident of State B, your tax rate will be lower than before in State B.