Charlotte's response was an antithesis.
Antithesis is a statement which is a direct opposite of what was stated before. So, Dr. Barnes told Charlotte that she should follow her dreams and do something she loves. However, she retorts saying something quite different from his statement - telling him that what she loves won't really give her money to live from.