Scaling laws for learning with real and surrogate data