Disconnect both cables at the derailleurs, shift both twist grips to the "slackest" positions (to the smallest cog position in the rear and the smallest chainring in the front). Then pull all the slack out of the cables and reattach them. That should be very close to what you need and can be refined with the barrel adjusters.