How update the state of one field based on other field selection

Can someone please help??