Start by drawing a straight vertical line segment (the pilgrim's path) of arbitrary length. Then at the end point, draw another line segment that is 8 units long and that makes an angle of 48 degrees east from the north (so an angle of 132 degrees from the south). This ends at Ali Baa Baa's cave.
Draw a circle centred at the cave of radius 14 units. This is how far Ali Baa Baa can travel.
Obviously this circle will pass through the pilgrim's path. If you join this point to Ali Baa Baa's cave, you will have a triangle (and obviously that length will be 14 units). You would know two of the side lengths and one of the angles, you should be able to solve the triangle and find how far along his path the pilgrim must travel.