Let Fq be a finite field with q elements and let X be a set of matrices over Fq. The main results of this paper are explicit expressions for the number of pairs (A,B) of matrices in X such that A has rank r, B has rank s, and A + B has rank k in the cases that (i) X is the set of alternating matrices over Fq and (ii) X is the set of symmetric matrices over Fq for odd q. Our motivation to study ...