You are making ham and cheese sandwiches for a party. Each sandwich is made with three slices of ham, one piece of cheese, and two slices of bread. You have 30 slices of ham, 20 slices of cheese, and 3 loaves of bread. Each loaf of bread has 12 slices. How many ham sandwiches can you make?