Here is the math problem:
The violin part repeats every 3 beats, the cello part repeats every 12 beats, the bass part repeats every 4 beats and the viola part repeats every 9 beats. What is the shortest number of beats that the movement can last if all the instruments must begin and end in unison?
Thank you
Since $4=2^2$, $12=2^2\cdot 3$ and $9=3^2$, they all divide $36=2^2\cdot 3^2$ which is also known as $36=\operatorname{lcm}(3,4,12,9)$. So $36$ beats is the minimal number of beats before they have all finished their respective sequences.
This is how it is done if you are used to easily find the prime factorizations involved.
A different approach would be to write out multiplication tables for $3,4,12$ and $9$ respectively and find that least common multiple manually that way. You will recognize $36$ as the lowest number occurring in all tables.