Option 1: go to Project B and select Move - and then select Project A. This will move project B into Project A as a sub-project.
Option 2: create a custom action on the Project level. Set a user variable called New Parent that will a reference to Object of type project. in the actions section, select Move. object type = work item. work item = currentObject() and parent = NewParent.