input: Write a python function to categorize programming languages based on their primary use.
  assert categorize_languages(['Python', 'Java', 'C', 'R', 'PHP', 'JavaScript']) == {'Scripting/Web': ['JavaScript', 'PHP'], 'Scripting/General-purpose': ['Python'], 'Statistical/Data Science': ['R'], 'Object-oriented/General-purpose': ['Java'], 'Low-level/Systems programming': ['C']}
  assert categorize_languages(['Python', 'Java', 'R']) == {'Scripting/General-purpose': ['Python'], 'Object-oriented/General-purpose': ['Java'], 'Statistical/Data Science': ['R']}
  assert categorize_languages(['C', 'JavaScript']) == {'Low-level/Systems programming': ['C'], 'Scripting/Web': ['JavaScript']}
output: def categorize_languages(languages):
      categories = {
          'Python': 'Scripting/General-purpose',
          'Java': 'Object-oriented/General-purpose',
          'C': 'Low-level/Systems programming',
          'R': 'Statistical/Data Science',
          'PHP': 'Scripting/Web',
          'JavaScript': 'Scripting/Web'
      }
      
      result = {}
      for lang in languages:
          category = categories.get(lang)
          if category:
              if category not in result:
                  result[category] = []
              result[category].append(lang)
      
      return result