The transfer (from current and historical underspends in the science budget) was necessitated by and used to meet an overall shortfall in DTI non-science budgets. The shortfall arose because of unforeseen pressures on the non-science budget (including those mentioned) in the context of a very tight DTI settlement (excluding science) from Spending Review 2004.
The transfer was considered only once all other options in the non-science budgets had been exhausted. This included managing down pressures and making wide-ranging cuts in other areas.
The funding released by these measures, alongside the transfer of money from science, was used to fund the remaining non-science pressures. It is not possible to determine the division of the transfer of funds from science between the examples mentioned. This is not how budgets are allocated or managed.