Michelle is purchasing fabric for two new sewing projects: a hat and a tote bag. The two projects each need red and black fabric. The hat requires 2 yards of red fabric and 1 yard of black fabric. The tote bag requires 2 yards of red fabric and 4 yards of black fabric. Michelle paid $14 for the hat’s fabric and $26 for the tote bag’s fabric. How much does one yard of each fabric cost?