The most important rule is that, in general, when the numbers one through ten are used, they should be spelled out. In other words, don't write, "The study took 5 years." Instead, write, "The study took five years." There is an exception in situations where the first number of a range is below ten and the second number is above ten.