De stijging hing samen met de hogere energieprijzen.
The rise was connected with the higher energy prices.
Dat kan samenhangen met zijn leeftijd.
That may be connected with his age.
Note
The preposition is part of the word. Without it the answer is wrong in ripiti: samenhangen met, not samenhangen.
Remember samenhangen met for good. ripiti brings the word back just before you forget it, with these sentences. Free, no account needed, works offline.