There's a pin on the stock where it folds. Get a hammer and screw driver and gently knock out the pin. Then using the same pin install the new stock. Depending on the G36 you have the pin can either be knocked down or either up or down. The JG and Echo have pins that can be knocked out either direction
You may want to use a bit of Gorilla glue or something to hold the pin in. Once you take out a G36 pin it tends to fall out easier.