Tracy wore makeup to the wedding that matched their formal dress because they were a bridesmaid. Given the context: Why did Tracy do this?
The answer is:
do what the bride told her