Generally, pasta is easy to cook. When the water boils, add the pasta and cook for another 5-10 minutes, then it's almost done.
The exact time depends on the thickness and quantity of the pasta:
If the pasta is thin and small, it should be cooked in boiling water for 5 minutes. This is because thin and less pasta has a larger heating area, thus reducing the heating time.
And if the pasta is thicker and more, then it may take a little longer, which is almost 10 minutes or so.