I have lost magic mouse2 & keyboard Thanks
once the mouse and keyboard are close to your computer and turned on, go to the System Preferences and click on either the mouse or keyboard options. Both of these panels have a buttom in bottom right which says Setup Bluetooth Mouse or Keyboard. The panes are shown below.



And for the keyboard.



Use these to setup your bluetooth devices.