Planets​ A, B, and C orbit a certain star once every 2​, 5​, and 12 ​months, respectively. If the three planets are now in the same straight​ line, what is the smallest number of months that must pass before they line up​ again?