@Elham68,
When combining those sentences using "which", the preposition with the verb (or verb phrase) in the second sentence is required.
There are some rides in the amusement park. You have a lot of fun
on them.
There are some rides in the amusement park,
on which you have a lot of fun.
There are some toys in the box. It is fun to play
with them.
There are some toys in the box,
with which it is fun to play.
I have been given a box of tools. I hope to find a use
for them.
I have been given a box of tools,
for which I hope to find a use.