Rack Pinion Mates

Any idea how to mate both of these together. I can only getone or the other to rotate, but not both. The gears don't line upbut I was using a sketch for the pitch diameter. I'm just trying toshow how the gears work together.

SolidworksAssemblies