If an organic compound is consisted of two or more different functional groups, then how can I determine which homologous series does it fall in? For example, if both -OH group and -COOH group are both present, does the compound belongs to alcohol or caboxylic acid?