Solve problems involving bearings.