You have $ R=\frac{a}{2sinA}=\frac{b}{2sinB}=\frac{c}{2sinC}=\frac{P}{2(sinA+sinB+sinC)}$ and $K=\frac{abc}{4R}$