When naming a compound with two or more functional groups, a prefix and suffix is assigned based on the priority of the functional group.