Make r subject of the formula given that xr+a=ar