you have to open the firewall or network address translator (NAT) to map a certain IP address that is accessible to Network A to the internal IP address (in Network B) of the web server.
for example, if Network A has IP block 10.0.0.0/8 and Network B has IP block 192.168.0.0/24 for its LANs. if Network A can connect to Network B, it's either Network A has access to the 192.168.0.0/24 block of Network B (via simple routing) or Network B has another set of addresses (e.g. 203.87.128.0/24) that both Network A and the internal Network B can access. if the latter, you'll need to map a certain 203.87.128.0/24 address to the internal web server's IP in Network B's 192.168.0.0/24 block. This is what is called "port mapping." So for example if Network A can access an IP 203.87.128.4 in Network B but cannot access the 192.168.0.0/24 block in Network B, have the router in Network B port-map 203.87.128.4 port 80 (HTTP) or whatever port to the internal web server's IP (e.g. it's 192.168.0.9) port 80 too.