The DHCP client broadcasts on the 172.31.1.0/24 subnet, and RouterB must relay those broadcasts to the remote DHCP server. The ip helper-address on RouterB's FastEthernet0/0 interface must point to the actual DHCP server address, which is 172.16.1.2.