The longitudes and latitudes of the different cities are provided in the question.
The diagram below shows how we can check the location of the cities using the directions:
QUESTION 1:
City located at 25n 55e: Dubai
QUESTION 2:
City located at 33s 18e: Cape Town
QUESTION 3:
City located at 40n 3w: Madrid
QUESTION 4:
City located at 31n 121e: Shanghai
QUESTION 5:
City located at 35s 55w: Buenos Aires
QUESTION 6:
City located at 37s 140e: Melbourne
QUESTION 7:
City located at 38n 120w: Los Angeles