Starting equation: A = P + P x t

Subtract P from both sides, to get:
A - P = P x t

Divide both sides by P t:
A - P
P t
= P x t
P t

x = A - P
P t