Consider a rectangle $l$ units long, and $w$ units wide and the $lw$ unit squares found in it. A diagonal is drawn from one corner to the opposite. The diagonal cuts through certain unit squares. Find in terms of $l$ and $w$ the number of unit squares that are cut through.