First I want to say what year are you in and second there are many ways to say it I would say, llevas dos horas cocinando. but if this is test I think A, but they all are somewhat correct. it also depends for the verb estar, so maybe you should also look in your notes.