How to group and merge results together in Views?
You can achieve this in following ways,

1) Choose your views format as table under Format 'Format: Table', Then click settings. You can find a table listing your selected fields. near to each field there is an option to choose column. There choose your  Title B s column to Title A and in the separator provide '&amp;' . Ensure Grouping field has chose. Now you will get a display in following format
Group 1:
Title A &amp; Title B

OR

2) After grouping, Choose Exclude from display option for your Title A  field. Then for second field choose Rewrite results. There you can find Replacement patterns. Use your token in appropriate format. eg. [title] &amp; [nid]

Hope this may helps you