In a math class with 28 students, a test was given the same day that an assignment was due. There were 18 students who passed the test and 19 students who completed the assignment. There were 16 students who passed the test and also completed the assignment. What is the probability that a student chosen randomly from the class completed the homework?