I don't know if this is a lack of rigor in your teacher's wording, or you copied the problem incorrectly, but if it is indeed true that "The random variables X and Y describe the weigh[t] of rocks loaded from two different piles", then your calculation is correct. However, to say "The random variables X and Y describe the weigh[t] of rocks loaded from two different piles" is to say that each pile has a particular weight that is distributed according to the respective distribution; that is, for each pile, one number is chosen according to the distribution, and each rock in that pile is then equal to that one number.
There is an important difference between "A, B = X ~ N" and "A, B ~ N". The first says that A and B are both equal to the same number drawn from a normal distribution, while the second says that A and B are different numbers both drawn from the same normal distribution. From context, it is reasonable to consider the rocks to be the second case rather than the first, in which case the variance should be multiplied by 10. Even when two random variables have the exact same distribution, they need to be treated as different variables, so in cases like this we calculate the variance correctly.
You further say "(X , Y [are] i.d.d)". But you gave different distributions for X and Y, so X and Y are not identical to each other. Presumably, this means that there is a collection of $X_i$ that are i.d.d. So a more rigorous way of saying this is:
Given two sets of random variables: $X_i$ ~ $N(20,5^2)$ and $Y_i$ ~ $N(50,10^2)$ that describe the weight of rocks loaded from two different piles to a truck, where $X_i$ and $Y_i$ are i.d.d., if you load 10 rocks from each pile (X, Y), what is the probability that the weight exceeds 800kg?
So here, you have ten copies of $N(20,5^2)$, not one $N(20,5^2)$ that has been multiplied by 10. If you had two rocks, you would have $N(20,5^2)+N(20,5^2)$, and that is not equal to $N(20+20,5^2+5^2)$. Similarly, ten copies of $N(20,5^2)$ is not the same as $N(20*10,5^2*10)$.
So, to answer your question: if things are phrased rigorously, then you can use the rule $var(10X)= 100 var(X)$. If things are not phrased rigorously, you have to think about whether $10X$ refers to one instance of a random variable that has been multiplied by $10$ (in which case you can use the rule $var(10X)= 100 var(X)$), or whether it refers to ten different instances of random variables, each drawn separately (in which case $var(10X)=10var(X)$). In this case, the fact that the variables were stated as being i.d.d. makes it clear that they are separate instances; $X$ and $Y$ can't be i.d.d. with respect to each other, and it makes no sense to say that a single instance of a variable is i.d.d., so they must be multiple instances from the same distribution.
You should look carefully at how the problem was phrased, and possibly have a discussion with your instructor about this distinction. Either your instructor didn't phrase this rigorously, or they didn't discuss this distinction, or they did discuss it but it didn't stick with you. Either way, they should get feedback about your confusion.