Matching two cycles with different periods means finding whole numbers of each that cover nearly the same time. Use the lengths of the two periods to test the candidate numbers.
The Metonic cycle matches 19 tropical years to a whole number of synodic months. How many months?