A familiar question with a familiar sound
Kumusta is historically related to Spanish cómo está, but it belongs to everyday Philippine speech. It is not necessary to know Spanish to use it. The pronoun ka refers to one person in familiar conversation. A short Kumusta? may be enough when you already know the person, and adding na can invite an update when you reconnect after a period apart.
Show respect with the right form
In Filipino, po is a particle used to show respect. Kayo is a plural pronoun that can also address one person respectfully. Together they make Kumusta po kayo? a useful question for an older adult or a person with whom you have a formal relationship. A reply such as Mabuti po, salamat keeps the same courteous register. You need not use the same particle in every language spoken locally.
Recognise a shared phrase in Cebuano
Kumusta ka? is also used in Cebuano, spoken widely in parts of the Visayas and Mindanao. Despite the identical spelling, Cebuano and Filipino are distinct languages. Maayo means good in Cebuano and is a useful word to recognise in a reply. In a multilingual group, English may be a practical fallback. Take your cue from your hosts when deciding which language to continue speaking.