Answer:
1.He said that I was writing a letter
2.Annie said,"I am walking to school"
Explanation:
When writing in reported speech the tense should change from present to past,then you should remove the inverted commas and place a that after 'said' and vice versa for direct speech