Seven Daughters And Seven Sons by Barbara Cohen

Set in the medieval Middle East, a clever young woman disguises herself as a man to rescue her struggling family and swiftly rises as a shrewd merchant. She befriends a brilliant trader from a prosperous household, and their secret-laden rivalry and partnership test wits, loyalty, and the boundaries of gender roles. When identities are revealed, love and honor prevail, rewarding courage and ingenuity.