Check if you have already configured the Static route or dynamic routing for the VLAN B. If you not configured then configure static or default route to the VLAN B.
Router(config)# ip route 0.0.0.0 0.0.0.0 interface
You can display statistics about static routes with the show ip route command