Problem #PRU-100335

Problems Discrete Mathematics Set theory and logic Logic and set theory

Problem

A girl and a boy are sitting on a long playground bench. Twenty other children approach them, and one by one sit down in-between two already sitting children until everybody is sitting comfortably on the bench. We call a boy “brave” if he sat between two girls, and we call a girl “brave” if she sat between two boys. How many boys and girls are “brave” if the boys and the girls who sit on the bench alternate?