After walking 18 km [N 35º E], you find yourself 6 km [N 50º W] of a barn. Where were you relative to the barn before you began your walk?

sketch the path.

If you started at (0,0) then the barn is at
(18 sin35º + 6 sin50º , 18cos35º - 6cos50º)
Now just convert those coordinates to a bearing and distance as usual