what are the two relationship in an ecosysytem