Affordable housing refers to housing units for people with less than the median household income. Its primary purpose is to…