it probably will be obvious for most of you guys,but just in case.... for part a), after we take the drivitive we get something like:
$ 4*q^3*(1-q)^6-6*(1-q)^5*q^4=0 $
you may try to solve it this way: divide both side by q^3 and (1-q)^5, thus we get:
$ 4*(1-q)-6*q=0 $
then we can easily find q=6/10