If you want to cook pasta with broccoli, boil the pasta and the broccoli in the same water. By doing this you’ll prevent the pasta from boiling over and cook both products at the same time.