solve two p