Hi
This can sometimes get messy but is possible. I guess you setup the internet conection sharing on computer 2 and that then assigned the IP address to computer 3.
You have two networks basically. Computer 2 is on both networks.
Check the IP addresses of each computer first. From a run command type CMD
At the command line type IPCONFIG
Note all the Ip addresses and let me know.