The most important subjects if you want to do a Bachelor of Laws (LL.B.) degree course in Kenya are Mathematics, English and Kiswahili. Generally, you need to have atleast a B (plain) in Maths and B (plain) in English or Kiswahili in KCSE to do any law related course.
Those other remaining subjects like History and government are not mandatory but you must balance your grades to ensure that you have met the required minimum entry mean grade.