A and B are complementary angles, so their cofunctions are equal.