There are 20 students in the algebra class. One-half of the students were boys. One-half of the boys wore T-shirts. How many boys wore T-shirts to the algebra class? Boys wearing T-shirts were what fraction of the students in the class?