Affine Invariants of Certain Pairs of Curves and Surfaces