If the number of homes on one side of the main road is three times the number on the other side, there are 3*40 = <<3*40=120>>120 homes.
In total, there are 40+120 = <<40+120=160>>160 homes in Mariam's neighborhood
#### 160