In a group of 50 people, two tests were conducted, one for diabetes and one for blood pressure. 30 people were diagnosed with diabetes and 40 people were diagnosed with high blood pressure. What is the minimum number of people who were having diabetes and high blood pressure?