Question: what is the answer to sorry?
Answer: For something formal or written, you can say I accept your apology. A very common phrase, as @CookieMonster mentions, is It's OK or It's all right. Sometimes, people apologize out of politeness, just in case the other person might be offended. In such a situation, people often respond with No worries or No problem.