how do i solve the equation p=IRT to get R?
Since you want to get R, and R is being multiplied by IT, you would need to do the inverse operation of multiplication which is division, so you would divide IT from R and get P/IT = R.