A silly question, because it is so vague. What do you mean by "common sense"? How do you define a "machine"?
Even if you're talking about humans, no one can agree on what is "common sense".
I think what you mean is error handling? If so, a team of humans must predict the error conditions that need to be handled and how to handle them with as much grace as feasible.
At a high level, it depends on how much processing power this machine has, how many development, mathematical and scientific resources you are allocating to this machine. With infinite money, one could certainly put together a team to make a machine with common sense.
I have the same objection that allears had: Until you have a definition of "common sense", no, you can't - not even with infinite money. Even with such a definition... let's just say your position "assumes facts not in evidence", as they say in court of law.