Both are dcfl, we have dpda for them
1. Read 2 $a's$ and push 1 $a$, we have have of $a's$ on stack
Now If we get $c$, it means we have double count of $b's$ than those of $a's$ on stack. So on reading two $b$ pop one $a$ ( means do nothing for one $b$, pop one $a$ with one $b$)
Or, if we get $d$, it means we have same number of $b's$, those of $a's$. So pop one $a$ on reading one $b$.
Given $c$ or $d$, make clear what to do, it is deterministic.
2. is also dcfl, push one $a$ on reading 3 $a$, pop one $a$ on reading 3 $b's$.