Hey there!!
Given equation :
... { ( 500 + n ) - 50 }5 = c
... { 500 + n - 50 }5 = c
... { 450 + n }5 = c
... 2250 + 5n = c
Hope my answer helps!!