Josh has a rectangular garden with an area of 324 square feet that he would like to enclose with a fence. If the garden has a length of 24 feet, how much fencing would he need?