"I want to thank you for taking time to meet Mariam last week."
Here's why:
* "to meet" is the infinitive form of the verb "meet" and is needed after the preposition "for".
* "last week" should be placed at the end of the sentence for clarity and flow.
The original sentence was missing the infinitive "to" and had an awkward placement of "last week".