wordpress category rewrite rule with pagination

I was able to solve it doing these rewrites in the following order.

So I specified 3 category url in the beginning
then 2 category url below that
and in the and
single category url

/combine/brand/category1/category2/page/1-9/
add_rewrite_rule(
    '^combine/([^/]*)/([^/]*)/([^/]*)/page/([0-9]*)$/','index.php?category_name=$matches[1]+$matches[2]+$matches[3]&paged=$matches[4]', 'top'
);

/combine/brand/category1/page/1-9
add_rewrite_rule(
    '^combine/([^/]*)/([^/]*)/page/([0-9]*)$','index.php?category_name=$matches[1]+$matches[2]&paged=$matches[3]', 'top'
);

/combine/brand/category1/
add_rewrite_rule(
    '^combine/([^/]*)/?([^/]*)/([^/]*)/?','index.php?category_name=$matches[1]+$matches[2]+$matches[3]', 'top'
);