Maria is planning to build a rectangular garden in her backyard. The length of the garden is 12 meters, and the width is 8 meters. She wants to put a fence around the garden and also plant flowers along the perimeter, spaced 2 meters apart. How many flowers will she need, and how much fence will she need to buy in total meters? Let's think step by step and output the final answer within \boxed{}.
user