Another way to say "a vacuum cleaner is used to clean carpet" is "One way to clean a carpet is to use a vacuum cleaner."