Given a graph G with degree sequence d1,…,dn and a positive integer r, let er(G)=∑i=1ndir. We denote by exr(n,F) the largest value of er(G) among n-vertex F-free graphs G, and by ex(n,Sr,G) the largest number of stars Sr in n-vertex F-free graphs. The \textit{broom} B(ℓ,s) is the graph obtained from an ℓ-vertex path by adding s new leaves connected to a penultimate vertex v of the path. We determine exr(n,B(ℓ,s)) for r≥2, any ℓ,s and sufficiently large n, proving a conjecture of Lan, Liu, Qin and Shi. We also determine ex(n,Sr,B(ℓ,s)) for r≥2, any ℓ,s and sufficiently large n.