solve for g -a=gs   g=