Can anyone tell me what preposition should be used after the verb 'struggle' because I've seen both versions like "struggle to" and "struggle with" ?

> 
> A handful of other rich countries are struggling **with** opioid
>  misuse too.
> 
> 
> 

> 
> But pharmacists from hospitals outside Lagos, the commercial capital,
>  must travel there to buy morphine. Smaller hospitals struggle **to**
>  pay for the trip.
> 
> 
>