You need to create a seperate VLAN on switchB, assign it a different subnet, assign it untagged to all ports and put a default gateway on SwitchB that points at InternetB.
To interconnect NetworkB with NetworkA you will need to route between them using one of the switches that is in both VLANs, so probably SwitchB.