Solution for "The Senate Bus Problem"