In this task, you need to replace a letter in the sentence with another given letter.
Sentence: 'a maroon tie with a white pattern on a red shirt with a different pattern'. Replace the letter 'd' with 'a' in the sentence.