Question: how to write a formal letter?
Answer: Most formal letters will start with 'Dear' before the name of the person that you are writing to:
'Dear Ms Brown,' or 'Dear Brian Smith,'
You can choose to use first name and surname, or title and surname. ... 
'Dear Sir/Madam,'
Remember to add the comma.