Design an addressing scheme, using VLSM?

If this has been asked before then I'm sorry.

I've been given this question and have been trying all weekend to figure it out. I've looked at multiple websites but none of them explain the process. It's really frustrating me. Can anyone help? So I've been given the first two pictures below. I'm just hoping someone could maybe explain this to me? I need to practice this for my exam!