input: Write a python function to calculate the total cost based on quantity and prices of items.
  assert calculateCost({'burger': 2, 'fries': 3, 'soda': 2}, {'burger': 5, 'fries': 2, 'soda': 1}) == 16
  assert calculateCost({'apple': 1, 'banana': 2}, {'apple': 3, 'banana': 1}) == 5
  assert calculateCost({'item1': 10, 'item2': 5}, {'item1': 2, 'item2': 3}) == 35
output: def calculateCost(quantities, prices):
      total_cost = 0
      for item, quantity in quantities.items():
          if item in prices:
              total_cost += quantity * prices[item]
      return total_cost