For this question we need to use the formula for compound interest:
[tex]P=P_0(1+\frac{i}{n})^{nt}[/tex]Where P is the final value, P0 is the initial value, i is the interest rate, t is the time in years and n is a value that depends on the compound rate (let's assume that is monthly, so we have n = 12)
Calculating the principal (P0) for account A, using the interest (P - P0) equal 27, we have:
[tex]\begin{gathered} P-P_0=P_0(1+\frac{0.032}{12})^{18}-P_0 \\ 12=P_0(1.00266667)^{18}-P_0 \\ 12=P_0(1.049-1) \\ P_0=244.90 \end{gathered}[/tex]So the principal for account A is $244.90.
For account B, we have:
[tex]\begin{gathered} 27=P_0(1+\frac{0.024}{12})^{27}-P_0_{} \\ 27=P_0(1.055-1) \\ P_0=490.91 \end{gathered}[/tex]The principal for account B is $490.91.