James has a rectangular garden that he wants to fence. The garden can be divided into two square plots, each with a side length of 10 meters. James also wants to plant flowers along the perimeter of the garden. If each square meter of flowers costs $5 to plant, how much will he spend on the flowers? Let's think step by step and output the final answer within \boxed{}.
user