Real scored twice late on at the Etihad to claim a 3-2 win in the first leg of their play-off clash.