The correct option is A.
The cost of the pizza is $8 and the total amount spent is $10. To find the cost of the salad, all you have to do is to subtract the cost of the pizza from the total amount spent, the remain amount will be the cost of the salad. That is,
Let S stands for salad,
8 + S = 10
S = 10 - 8 = 2
Thus, S = 2.
This means that, the salad costs $2.00