The length of segment ABABAB is ppp units. MMM is the midpoint of ABABAB, and MRMRMR is a perpendicular with length qqq units. From RRR, an arc is drawn with radius equal to 12AB\frac{1}{2} AB21AB, intersecting ABABAB at TTT. The roots of the following equations are ATATAT and TBTBTB: