he ruled both territories in a personal union that became brandenburg prusia