Kate prepared 9 kilograms of dough after working 3 hours. How many hours did Kate work if she prepared 12 kilograms of dough? Assume the relationship is directly proportional.