A grocery store chain needs to transport 3000 m of refrigerated goods and 4000 m of non-refrigerated goods. They plan to hire a truck from a company that has two types of trucks for rent, type A and type B. Each type A truck has a 20 m refrigerated goods section and a 40 m non-refrigerated goods section, while each type B truck has both sections with the same volume of 30 m . The cost per cubic meter is $30 for a type A truck and $40 for a type B truck. How many trucks of each type should the grocery store chain rent to achieve the minimum total cost?