input: Write a python function to extract city names and number of cars from a given list of lists, and then create a bar chart using matplotlib.
  assert extract_and_plot([['Atlanta', 1500], ['Boston', 3000], ['Los Angeles', 2500], ['New York', 4000]])==None
  assert extract_and_plot([['Chicago', 1200], ['Houston', 2000], ['Phoenix', 1800], ['Dallas', 2200]])==None
output: import matplotlib.pyplot as plt
  
  def extract_and_plot(data):
      cities = [item[0] for item in data]
      number_of_cars = [item[1] for item in data]
      
      plt.bar(cities, number_of_cars)
      plt.xlabel('Cities')
      plt.ylabel('Number of Cars')
      plt.title('Number of Cars in Different Cities')
      plt.show()