for the first question it Basically means, how did the invention (which is the cotton gin) affect slavery. In this case, it affected slavery in the US because this made it easier for slaves to pick cotton but it increased the work for slaves which was great for white owners but bad for slaves