Let's denote the amount raised two years ago as \( x \).
According to the problem:
-
Last year, donations were 10% greater than the year before: \[ \text{Last year's donations} = x + 0.1x = 1.1x \]
-
This year, donations are 15% greater than last year: \[ \text{This year's donations} = \text{Last year's donations} + 0.15 \times \text{Last year's donations} = 1.1x + 0.15 \times 1.1x = 1.1x(1 + 0.15) = 1.1x \times 1.15 = 1.265x \]
-
We know that this year's donations amount to \( 10,120 \): \[ 1.265x = 10,120 \]
To find \( x \), we will divide both sides of the equation by 1.265: \[ x = \frac{10,120}{1.265} \]
Now we calculate \( x \): \[ x \approx 7,993.70 \]
Thus, the amount raised two years ago was approximately \( \boxed{7,993.70} \).