Solving Legal Problems