10x + 25(40 - x) = 715 {number of coins times value of coin equals total value}
10x + 1000 - 25x = 715 {used distributive property}
-15x + 1000 = 715 {combined like terms}
-15x = -285 {subtracted 1000 from each side}
x = 19 {divided each side by -15}