A duplex is a type of residential dwelling unit that contains two units, each with its living area. The term…