How would you ask "How are you?" formally in spanish?

A. ¿Cómo está?
B. ¿Cómo estás?
C. Both ways are acceptable

A. ¿Cómo está?