Question: what is the answer for how do you do that?
Answer: The correct response is simply to repeat the question "How do you do?" or to say "Nice to meet you". In less formal gatherings you would simply say "Hello" when introduced to another person. "How are you?" is a polite enquiry after the health of someone you know or have at least met before.