(CNN) -- It was a mystery that Panama's president said his country was struggling to solve.
What was the massive military equipment hidden under hundreds of thousands of sacks of brown sugar on a North Korean boat? Where did it come from? And where was it going before investigators seized the vessel near the Panama Canal?
Hours after Panama said it would ask U.S. and British officials for help solving the puzzle, Cuba gave an answer Tuesday night.
In addition to 10,000 tons of sugar, Cuba's Foreign Ministry said, the shipment contained "240 metric tons of obsolete defensive weapons" sent to North Korea "to be repaired and returned to Cuba."