He had three years in which to establish himself as prime minister.
他有三年时间来确立自己首相的地位。
in which是什么成分呢?又指的是什么?为什么后面加to?