I defined the constraints of the second problem