On a math test, it took Kiera 30 minutes to do 6 problems. Health finished 18 problems in 40 minutes. Did the students work at the rate? Explain your reasoning.