Here's an easy but tedious method:

C (0,0) A (4,0) B (0,3) Call the required length CP

equation of line throug C and P is ..... equation of line through A and B is .....

Solve simultaneously to find P then use Pythagoras to find length CP.

Or use some clever geometry.....