What is the Meaning of the ExpressionTAKE ADVANTAGE OF?

Definition 1:

Example:

In the example above, the wife is annoyed with her husband because she knows that $100 is not a fair wage for the painting of their large porch. She believes that her husband exploited, or took advantage of, the new immigrant, and that his actions were unkind.

Definition 2:

make good use of the opportunity available to you

Example:

My friends from Mexico came to visit me in Canada. They took advantage of the mountains and snow, and learned to snowboard.