Line up (something with something)

To adjust two things correctly.

The carpenter lined up the two pieces of wood before he nailed them together.