how would you solve this

31=2*x+c+1

2*x+c+1-31=0

2*x=31-1-c =30-c Divided with 2

x=(30-c)/2