I'm not good at word problem, so any help would be great.The sum of two nonnegative numbers is 20. Find the numbers if

a) the sum of their squares is as large as possible; as small as possible.

b) one number plus the square root of the other is as large as possible; as small as possible.