Blazing goIITian
Just by observation it is clear that A=pi/2 and B=-pi/6 would satisfy both conditions.
Hence 3A + B = 3pi/2 - pi/6 = 4pi/3