4a-(8a-5b)-(-5a+2b)+4

To solve this expression, we can simplify step by step:

4a - (8a - 5b) - (-5a + 2b) + 4

First, let's solve the expressions within parentheses:

4a - (8a - 5b) becomes 4a - 8a + 5b

Next, we need to distribute the negative sign that multiplies the second set of parentheses:

-(-5a + 2b) becomes +5a - 2b

Now, the expression becomes:

4a - 8a + 5b + 5a - 2b + 4

Combine the like terms:

(-4a + 5a) + (5b - 2b) + 4

a + 3b + 4

So, the simplified expression is a + 3b + 4.