Can I solve this with similar triangles?

Greg solves this in a way that doesn’t make a lot of sense to me using algebra. I did it by understanding triangle PCB is similar to trianle POC. They both have a 90 degree angle (angles PAO and PBC) and both share angle BPC. This would mean the 3rd angle of both, POA, and PCB, are the same.

Does that line of logic work or did I just get lucky?

Yeah sure