A question related to Computer Networking

A large number of consecutive IP address are available starting at Suppose that four organizations, A, B, C, and D, request 4000, 2000, 500, 1000 and 7000 addresses, respectively, and in that order. For each of these, give the first IP address assigned, the last IP address assigned, and the mask in the w.x.y.z/s notation.