Literal equations I=pry solve for p
I=pryI/ry=pInterest divided by rate times years is equal to the principle.