I would rewrite your sentence thus: Most of them spent about 2 months in preparation for the course (60%) while only 20% spent 3 months. This sentence is not ideal, but I would need to have more context to provide a better solution.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.