From what I can see, Madagascar in 2024 had a trade deficit with the US of about $700 million and had total imports of about $5.4 billion. It's feasible that they might prefer to transfer 13%[0] of their current imports to sources from the USA even if it's more expensive since being able to export more cheaply to the USA would be a net gain.
0. Actually less than this since there's a floor of a 10% tariffs. They can have deficit/imports of up to 20% before they incur a penalty.