Connection between the Kadomtsev-Petviashvili and Johnson equations