Classify the structures homologous or analogous, depending on their structure and function

Analogous structures have a different evolutionary ancestries but they have the same function
while homologous structures are the opposite; they have similar ancestries and common traits but maybe not have the same function in an organism