Pastel,
Never say "never"!
There are very few verbs in English that cause such a commotion. I think my examples illustrate the most usual ones. "take" is so flexible that I included a separate section at the end with more examples.
These are illustrations of preposed "it" as a representative of the infinitive clause and/or various pronomializations. As usual, "*" means ungrammatical, and "?" means questionable. It is possible that in the heat of conversation a sentence with "?" or even "??" might be generated, but not if the speaker took the time to think about it.
*To write the letters took me five hours.
*To write them took me five hours.
It took me five hours to write the letters.
It took me five hours to write them.
?The letters took me five hours to write.
?The letters took me five hours.
??They took me five hours to write.
??They took me five hours.
__________
"require" is not very flexible. Promoting the object of the infinitive to subject is suspect, i.e., possible, but not recommended. Also note that leaving the infinitive at the end of the sentence while promoting its object to subject is analogous to ending a sentence with a preposition while its object goes roaming about elsewhere!
*To teach the verbs of English requires patience.
*To teach them requires patience.
It requires patience to teach the verbs of English.
It requires patience to teach them.
?The verbs of English require patience to teach.
?The verbs of English require patience.
?They require patience to teach.
?They require patience.
__________
"to do (someone) (a lot of / a world of ) good" is about as flexible as "cost".
*To watch movies does me a world of good.
*To watch them does me a world of good.
It does me a world of good to watch movies.
It does me a world of good to watch them.
?Movies do me a world of good to watch.
Movies do me a world of good.
??They do me a world of good to watch.
They do me a world of good.
_________
?To buy new clothes costs a lot of money.
*To buy them costs a lot of money.
It costs a lot of money to buy new clothes.
It costs a lot of money to buy them.
?New clothes cost a lot of money to buy.
New clothes cost a lot of money.
??They cost a lot of money to buy.
They cost a lot of money.
________
To buy new appliances would cost me $2000.
To buy them would cost me $2000.
It would cost me $2000 to buy new appliances.
It would cost me $2000 to buy them.
?New appliances would cost me $2000 to buy.
New appliances would cost me $2000.
??They would cost me $2000 to buy.
They would cost me $2000.
Note in the examples with "cost", both preposed "it" and raising the object are possible. That's why either "it" or "they" works in the "buying clothes" example.
________
The verb "take" is especially flexible. It allows several sentence constituents to be raised to subject position, as well as allowing preposed "it". Just about any element can be pronomialized as well.
For the carpenter to measure the roof beams takes two hours.
It takes two hours for the carpenter to measure the roof beams.
It takes the carpenter two hours to measure the roof beams.
It takes the carpenter two hours to measure them.
It takes him two hours to measure the roof beams.
It takes him two hours to measure them.
The carpenter takes two hours to measure the roof beams.
The carpenter takes two hours to measure them.
He takes two hours to measure the roof beams.
He takes two hours to measure them.
The roof beams take two hours for the carpenter to measure.
The roof beams take two hours for him to measure.
They take two hours for the carpenter to measure.
They take two hours for him to measure.
They take two hours to measure.
The roof beams take the carpenter two hours to measure.
The roof beams take him two hours to measure.
They take the carpenter two hours to measure.
They take him two hours to measure.
They take two hours to measure.
The following three are of particular relevance to your question.
Preposed "it", pronomialized "carpenter", or pronomialized "beams" are all possible. They are listed in order of acceptability, however. The first listed is the most acceptable and idiomatic. Note that the object of the infinitive is least idiomatic. (Recall my remarks about idiomaticity in the "buying clothes" example.) Raising the subject of the infinitive to the subject of the main clause is quite acceptable with "take", but makes no sense at all with "cost" (Which is why "he" was not a possibility in "*worried about how much he would cost".)
If the carpenter were to measure the roof beams,
I wonder how long it would take.
If the carpenter were to measure the roof beams,
I wonder how long he would take.
If the carpenter were to measure the roof beams,
I wonder how long they would take.
So "take" allows THREE possibilities, whereas "cost" allowed only two.
Every verb has its own personality!
There is absolutely no end to the treats!!!!!!
There are many more forms if we venture into the passive voice, such as, "It takes two hours for the roof beams to be measured by the carpenter."
The other 5,469,304 possible examples are left as an exercise to the reader!
Enjoy!
Jim