Some extremal problems in $L^p(w)$