The puzzle of the sacrificial second princess: The hostage princess receives a warm welcome as a talented person in the enemy country

Ikenie Daini Koujo no Konwaku: Tekikoku ni Hitojichi to shite Totsuidara Fushigi to Daikangei Sareteimasu
生贄第二皇女の困惑 敵国に人質として嫁いだら不思議と大歓迎されています

Adaptation

The Sacrificial Second Princess's Perplexity ~ Shipped off as a Hostage, Warmly Welcomed as a Sagacious Savior ~
Ikenie Daini Koujo no Konwaku: Hitojichi no Himegimi, Tekikoku de Chi no Saien to shite Daikangei o Ukeru· 生贄第二皇女の困惑 ~人質の姫君、敵国で知の才媛として大歓迎を受ける~
manga

As the middle of three imperial princesses of the Fatenam Empire, Claire has always been seen as royal dead weight. So when Vallatenear emerges victorious in war, she's quickly offered up as a bride as part of the peace terms. Prepared for harsh conditions, torture, and even death, Claire is flabbergasted when she receives a warm welcome, and news that she's been betrothed to none other than the crown prince! It turns out her extraordinary intelligence is exactly what the kingdom has been longing for...a "Living Fount of Knowledge!" (Source: MangaPlaza)