A man walks 5km on a bearing of 3150 from a point A and then walks due south to a B point which is 8km from A. Calculate the bearing of B from A .