DFA can be drawn for the first Language L1 and so the language is regular.
L1 will have finite no. of strings in the language .
L1= { € ,a ,aa, b, bb , ab , aab , aabb , aabbb, aabbbb }
Language second is clearly a cfl language .
L2 can be written as -
L2= (€ + a + aa)(a^n b^n)
(Second part is the standard example of cfl language)
[ ' € ' represents null string ]