Bound states of a relativistic two-body system