how to install diy home moldings

How to make two pieces of flat stock molding flush with each other.