Answer:
B. To clean that stain from the carpet.
Explanation:
The phrase that can replace the underlined adjective clause in this sentence is "to clean that stain from the carpet." This is because this phrase is the most applicable one and is the best option :')