A rectangle has a perimeter of 100. Its length is 5a+225a+22 and its width is \frac{1}{2}\left(a+1\right)
2
1

(a+1). What is the value of a?