Question: how are you doing formal answer?
Answer: The most common way of greeting someone both at an informal level and more formally would be: Hello! How are you? to which the standard reply is: Very well, thank you. or: Fine, thank you. (Note that the question is not usually meant or interpreted as a searching enquiry after the person's health.)