When any request come from PCs of VLAN 2. The L3 switch ( Who work as DHCP relay agent) send the dhcp request to the dhcp server and DHCP server allocate the IP address from the scope of VLAN 2 ( Which you have configured) to the PCs of VLAN 2.