"Yours sincerely (Sincerely),
Company B (if you're standing for Company B to say the apology) or your full name"
That is my opinion and all my experience to write a formal letter. Well, I'm so sorry that I have no idea whether it is not right.
Student or Learner