Simplify g+5+(2g+7)