A rectangular garden has a length of 12 meters and a width of 8 meters. To surround the garden with a fence, you need to calculate the perimeter of the garden. What is the total length of the fence required?
Use the formula for the perimeter of a rectangle, which is given by:
$$ P = 2(l + w) $$
where $$ l $$ is the length and $$ w $$ is the width.