Solve this math problem

Solve 12340*p = 12277*p + 189 for p.
3