cut the pipes,use two elbows,two lengths of pipe and two flexi's.Push fit will do if you don't want to use solder or compression.
Extend the waste with a piece of pipe but you may need to cut the vertical bit of waste so as the elbow sitis on the floor boards and that will give you a good fall...