In a mathematical contest, three problems, A,B,CA, B, C were posed. Among the participants there were 25 students who solved at least one problem each. Of all the contestants who did not solve problem AA, the number who solved BB was twice the number who solved CC. The number of students who solved only problem AA was one more than the number of students who solved AA and at least one other problem. Of all students who solved just one problem, half did not solve problem AA. How many students solved only problem BB?