The question and its answer is given in the following picture:

I do not understand the second equality in the solution from where it comes, could anyone explain this for me please?
On
You want the probability X or Y is greater than 3. The other possibility is that X and Y are both less than or equal to 3. So those two possibilities sum to 1. It's a lot easier to calculate the probability X and Y are both less than or equal to 3 (which is 49/64), so do that and subtract it from 1. The reason there are two inequalities is that both conditions must be true.
Independence of $X$ and $Y$ means $$P(X\text{ does thing }1\text{ and } Y \text{ does thing 2})=P(X\text{ does thing 1})P(Y\text{ does thing 2})$$ for all pairs of things.
$X$ and $Y$ have the same distribution means $$P(X\text{ does thing T})=P(Y\text{ does thing T})$$ for all things $T$.