Auto Layout Constraint Help

Hi,

I have a UIScrollView within a UIView and then two container views within the scroll view (see below):

What I am trying to achieve is that the top container takes up X amount of the screen and then the container at the bottom takes up the rest & grows more if the content is larger than the available space.

However what I am getting is this at the moment (link to image below) - could anyone help?
http://postimg.org/image/dwpkzgd9n/

Thanks!