In a rectangular garden, the length is 20 meters and the width is half the length. If a fence is to be built around the garden, how many meters of fencing material will be needed? Additionally, if the cost of the fencing material is $12 per meter, what will be the total cost? Let's think step by step and output the final answer within \boxed{}.
user