Commensurability in astronomy refers to the relationship between the orbits of two different celestial bodies. Imagine you and your friend are playing on swings, and your swings are attached to the same bar. If your friend's swing is going twice as fast as yours, then your swings are not in commensurability because they are moving at different rates. However, if your friend's swing is going exactly three times faster than yours, then your swings are in commensurability because they have a specific mathematical relationship.
This same concept applies to celestial bodies in space. If two planets or moons have orbits that have a specific mathematical relationship, then they are said to be in commensurability. For example, if Planet A orbits the sun in exactly twice the time it takes for Planet B to orbit the sun, then their orbits are in commensurability.
This can have an effect on the gravitational interactions between the two bodies. When planets or moons are in commensurability, their gravitational forces can either add up or cancel each other out. This can result in stable orbits, or cause disruptions in the orbits.
Scientists study commensurability in astronomy to better understand the relationships between celestial bodies and the effects they have on each other. By analyzing the commensurability of different orbits, researchers can make predictions about how these celestial bodies will interact in the future.