What are these relations and what are the four kinds of being distinguished with their aid?

Aristotle distinguishes between four kinds of beings with reference to two relations, being said of a subject andbeing in a subject. What are these relations and what are the four kinds of being distinguished with their aid? How are they related to the types of being that things said apart from combination signify, which are enumerated in chapter 4, and the most important of which, substance, is discussed in chapter 5?