Rhythm synchonization

Hi there! Can I and if yes how can I synchronize rhythm of two compositions in Audacity automaticaly? Thanks.

There is no automatic way to do that.
You can use the Time Shift tool to move the left/right position of a track.
You can use the “Change Tempo” or “Sliding Time Scale / Pitch Shift” to change the tempo (speed).