Heat oil in a pan and fry the onions until soft. 1 onion finely chopped 2 tsps olive oil 2…