if you have 40 GB Hard disk then, partition it into two (10GB each) or a partition (20GB) for Windows XP. Rest of the space keep unpartitioned. After install Windows XP and required software then you have to install Linux. If you have no idea for HardDisk partition so, please go through
LinuxQuestions.org
Thanks
