Both routers are in the same subnet. You need to adjust the gateway address and subnet mask. Something like router A is 0.1 and assigns 0.2 through 0.100. Router B is 0.101 and assigns 0.102 through 0.200. These numbers may not be precisely on a boundary, and you need to calculate a netmask, but that should work for you.