Given data:
The sum of the first 10 terms of an arithmetic progression = 40
The first term is -5
Using the formula to get the sum of an arithmetic term

from the above formula

Method: substitute the values and make d the subject of the formula

=>

=> divide both sides by 5

=>

=> collect like terms
9d=10+8
=>
9d=18
=>Divide both sides by 9

Therefore the common difference is 2