Okay, Use the bottom waste pipe as you're starting point. Measure the distance from where it comes out of the wall, to where it's going to join the rain pipe, and calculate a 1:40 fall. It looks to be about 1.4mtrs, so you'd have a drop of about 35mm (Sorry if I'm teaching you maths that you already know, but best to do this properly) and set up your waste pipe supports accordingly. Take the upper waste pipe down in to the lower pipe, and join it with an equal T (screwfix part no 99915), but be careful to join everything up dry, and then plastic cement (from a plumber merchant as screwfix don't sell it) it when you're certain of the angles. You can't actually go straight down with the upper pipe, because the lower pipe is slanting down at an angle. Joint the upper and lower pipes in to the T piece measure and join the section from the T piece to the rain pipe. Mark where the last section will cut into the rain pipe, and drill a 40mm hole into it and slide the rain pipe on to it. You don't want to extend very far into the rain pipe, or it can catch leaves etc on it. Put some silicone sealant round the joint, and the job should be done. You shouldn't need (or want) to reduce the 40mm pipe, or you'll risk a build up of waste in the reduced section. All completely illegal of course, but best of luck