The correct answer is: A. To do something remarkable.

The phrase "to set the Thames on fire" is an idiom that means to do something remarkable or to achieve great success. It is thought to have originated in the 17th century, when the River Thames was a major commercial waterway. At that time, it would have been a very difficult and dangerous task to set the river on fire, so the phrase came to be used to describe any act of great daring or accomplishment.

The other options are incorrect because they do not accurately reflect the meaning of the idiom. Option B, "to try to do the impossible," is too literal. The phrase "to set the Thames on fire" does not mean to attempt something that is impossible, but rather to achieve something that is very difficult or challenging. Option C, "to burn something to ashes," is also too literal. The phrase "to set the Thames on fire" does not mean to destroy something completely, but rather to achieve something that is very impressive or noteworthy. Option D, "to fling ironical remarks," is not an accurate interpretation of the idiom at all. The phrase "to set the Thames on fire" is not used to describe the act of making ironical remarks.