(a) Use the Mayer--Vietoris sequence to compute the homology groups of the space obtained from a torus S1×S1 by attaching a M\"obius band via a homeomorphism from the boundary circle of the M\"obius band to the circle S1×{x0} in the torus.
(b) Do the same for the space obtained by attaching a M\"obius band to RP2 via a homeomorphism of its boundary circle to the standard RP1⊂RP2.