For this case we have the following conversion factor:

The population density is given by:

Where,
x: total number of people
y: total area
Substituting values we have:


Rounding the nearest whole we have:

Answer:
The population density in San Francisco is:
