Align along axis

try using the translate tool. Select: Transform, translate, select object B, then hit next, then you can select the edges you want to align and move the dots on each object to align them how you want.