The Diophantine equation $Ax^p+By^q=Cz^r$