Hello Mona,
The version 6,5 can be installed however you may face some technical issues in its functioning on 10.5 due to in-compatibility with it.
You can buy upgrade QuarkXPress version 8 and directly install version 8 on 10.5 you will not need version 6 to install version 8 on 10.5
I hope this information helps!