For the most part it is a guess. Assuming you are in the US, here are the details on the EPA test cycles:
http://www.fueleconomy.gov/feg/fe_test_schedules.shtml
City involves lots of stops and low average speeds, around 21mph. Meanwhile, the highway doesn't have stops, but its average speed is lower than what you most likely think of as highway.
__________________