Consider A to be at (0,0)
B lies on the circle with center at (0,0) and radius 190
The ship ended up at a point P on a circle with center at (0,0) and radius 270, such that BP = 180
If we let B be due north of A, then the bearing of P from B is z degrees, where
cosz = 80/180
Now you can find the angle θ that the ship is off via
tanθ = 180sinz/270 = 2/3 sinz