(a) Convert $61502$ from base $8$ to decimal.
(b) Convert $EB7C5$ from base $16$ to octal.
My answer: a) $6\times8^4+1\times8^3+5\times8^2+\times8^1+2\times8^0=25410$
b) not sure: converting $E=14$, $B=11$ and $C=12$ we have $14117125$. I needed hints here.
The rule for b) is to first convert into decimal base(i.e. multiply by powers of 10) and then convert them to Octal (remainders when dividing by 8)