Salem,
you can weld the A 106 Gr B with the WPS of A572 Gr 50 Without any problem because they have the same P number and sous group Numbers
for more datils see ASME sect IX QW-420 BASE METAL GROUPINGS