So, "give the X to the Y," that construction corresponds to the thought "cause X to go to Y." Whereas "give the Y the X" corresponds to the thought "cause Y to have X."
Así que "dar X a Y", esa construción correspóndese  co pensamento "causar que X vaia ata Y". Mentres que "Dar a Y X" corresponde ao pensamento  "causar que Y teña X".