contestada

Hello I have to develop that (x-1)(x+2) I know that it makes x²+x-2 but I don't understand why, can you explain me ?