Hi, I have two equations that i need to find the max of...apparently this is finding the derivative of the function..but I'm struggling..

1.

find max of: a(1-X)^1/2 + (X)^1/2

where a is a positive constant.

So I need to find out what X equals.

2.

find max of: 4log(100-X) + 2log(X + Y)

So I need to find X.

Any help would be much appreciated!